Safe Haskell | None |
---|---|
Language | Haskell98 |
- parse :: (a -> Parser b) -> a -> Result b
- data Parser a :: * -> *
- data Result a :: * -> *
- data Datum
- class ToDatum a where
- class FromDatum a where
- fromDatum :: FromDatum a => Datum -> Result a
- data LonLat = LonLat {}
- type Array = Vector Datum
- type Object = HashMap Text Datum
- newtype GeoLine = GeoLine {}
- newtype GeoPolygon = GeoPolygon {}
- (.=) :: ToDatum a => Text -> a -> (Text, Datum)
- (.:) :: FromDatum a => HashMap Text Datum -> Text -> Parser a
- (.:?) :: FromDatum a => HashMap Text Datum -> Text -> Parser (Maybe a)
- encode :: ToDatum a => a -> ByteString
- decode :: FromDatum a => ByteString -> Maybe a
- eitherDecode :: FromDatum a => ByteString -> Either String a
- resultToMaybe :: Result a -> Maybe a
- resultToEither :: Result a -> Either String a
- object :: [(Text, Datum)] -> Datum
Documentation
A JSON parser.
The result of running a Parser
.
A ReQL value
class ToDatum a where Source #
class FromDatum a where Source #
newtype GeoPolygon Source #
encode :: ToDatum a => a -> ByteString Source #
eitherDecode :: FromDatum a => ByteString -> Either String a Source #
resultToMaybe :: Result a -> Maybe a Source #