Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Value
- type Env = HashMap Text Value
- toValue :: Value -> Maybe Value
- toText :: Value -> Text
- toDateTime :: String -> Maybe UTCTime
- maybeParseIso8601 :: Maybe String -> String -> Maybe UTCTime
- maybeOrdering :: (Value -> Value -> Ordering) -> Maybe Value -> Maybe Value -> Ordering
- dateOrdering :: Value -> Value -> Ordering
- arrayContainsString :: Text -> Value -> Bool
Documentation
Represents the data types found in an environment.
This includes at least Data.Aeson Value type (https:/hackage.haskell.orgpackageaeson-1.2.3.0docs/Data-Aeson.html#t:Value), plus other useful ones.
toText :: Value -> Text Source #
Render for human consumption. This is the default one. Pass into Config as part of the Reader?
toDateTime :: String -> Maybe UTCTime Source #
Accepted format is ISO 8601 (YYYY-MM-DD), optionally with an appended "THH:MM:SS". Example: 2010-01-30, 2010-01-30T09:08:00
maybeParseIso8601 :: Maybe String -> String -> Maybe UTCTime Source #
Helper for parseTimeM
using ISO 8601. YYYY-MM-DDTHH:MM:SS and
YYYY-MM-DD formats.
https://hackage.haskell.org/package/time-1.9/docs/Data-Time-Format.html#v:iso8601DateFormat