Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- parseJSONViaCodec :: HasCodec a => Value -> Parser a
- parseJSONVia :: ValueCodec void a -> Value -> Parser a
- parseJSONObjectViaCodec :: HasObjectCodec a => Object -> Parser a
- parseJSONObjectVia :: ObjectCodec void a -> Object -> Parser a
- parseJSONContextVia :: Codec context void a -> context -> Parser a
Decoding JSON Values
parseJSONViaCodec :: HasCodec a => Value -> Parser a Source #
Implement parseJSON
via a type's codec.
parseJSONVia :: ValueCodec void a -> Value -> Parser a Source #
Implement parseJSON
via a given codec.
Decoding JSON Objects
parseJSONObjectViaCodec :: HasObjectCodec a => Object -> Parser a Source #
parseJSONObjectVia :: ObjectCodec void a -> Object -> Parser a Source #
Internal
parseJSONContextVia :: Codec context void a -> context -> Parser a Source #
Parse via a general codec.
You probably won't need this. See eitherDecodeViaCodec
, parseJSONViaCodec
and parseJSONVia
instead.
Orphan instances
HasCodec a => FromJSON (Autodocodec a) Source # | |
parseJSON :: Value -> Parser (Autodocodec a) # parseJSONList :: Value -> Parser [Autodocodec a] # omittedField :: Maybe (Autodocodec a) # |