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
- toJSONObjectViaCodec :: HasObjectCodec a => a -> Object
- toJSONObjectVia :: ObjectCodec a void -> a -> Object
- toSeriesViaCodec :: HasObjectCodec a => a -> Series
- toSeriesVia :: ObjectCodec a void -> a -> Series
Encoding JSON Values
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
toJSONObjectViaCodec :: HasObjectCodec a => a -> Object Source #
toJSONObjectVia :: ObjectCodec a void -> a -> Object Source #
toSeriesViaCodec :: HasObjectCodec a => a -> Series Source #
toSeriesVia :: ObjectCodec a void -> a -> Series Source #
Orphan instances
HasCodec a => ToJSON (Autodocodec a) Source # | |
toJSON :: Autodocodec a -> Value # toEncoding :: Autodocodec a -> Encoding # toJSONList :: [Autodocodec a] -> Value # toEncodingList :: [Autodocodec a] -> Encoding # omitField :: Autodocodec a -> Bool # |