Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- encodeJSONViaCodec :: HasCodec a => a -> ByteString
- eitherDecodeJSONViaCodec :: HasCodec a => ByteString -> Either String a
- 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
- 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
- module Autodocodec.Aeson.Decode
- module Autodocodec.Aeson.Encode
Encoding and decoding JSON
encodeJSONViaCodec :: HasCodec a => a -> ByteString Source #
Encode a value as a JSON ByteString
via its type's codec
.
eitherDecodeJSONViaCodec :: HasCodec a => ByteString -> Either String a Source #
Parse a JSON ByteString
using a type's codec
.
Instantiating ToJSON
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.
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 #
Instantiating FromJSON
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.
JSON Objects
parseJSONObjectViaCodec :: HasObjectCodec a => Object -> Parser a Source #
parseJSONObjectVia :: ObjectCodec void a -> Object -> Parser a Source #
To makes sure we definitely export everything.
module Autodocodec.Aeson.Decode
module Autodocodec.Aeson.Encode