autodocodec-0.2.2.0: Self-documenting encoder and decoder
Safe HaskellSafe-Inferred
LanguageHaskell2010

Autodocodec.Aeson.Decode

Synopsis

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

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