Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- toJSONViaCodec :: HasCodec a => a -> Value
- toJSONVia :: ValueCodec a void -> a -> Value
- toEncodingViaCodec :: HasCodec a => a -> Encoding
- toEncodingVia :: ValueCodec a void -> a -> Encoding
Documentation
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.
Orphan instances
HasCodec a => ToJSON (Autodocodec a) Source # | |
toJSON :: Autodocodec a -> Value # toEncoding :: Autodocodec a -> Encoding # toJSONList :: [Autodocodec a] -> Value # toEncodingList :: [Autodocodec a] -> Encoding # |