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

Autodocodec.Aeson.Encode

Synopsis

Encoding JSON Values

toJSONViaCodec :: HasCodec a => a -> Value Source #

Implement toJSON via a type's codec.

toJSONVia :: ValueCodec a void -> a -> Value Source #

Implement toJSON via a given codec.

toEncodingViaCodec :: HasCodec a => a -> Encoding Source #

Implement toEncoding via a type's codec.

toEncodingVia :: ValueCodec a void -> a -> Encoding Source #

Implement toEncoding via the given codec.

Encoding JSON Objects

Orphan instances