defaultOptions :: OptionsDefault decoding/encoding options:
- Represent sum types as records with
tagandcontentsfields - Unwrap single arguments
- Don't unwrap single constructors
genericDecode :: forall a rep. Generic a rep => GenericDecode rep => Options -> Foreign -> F aRead a value which has a Generic type.
genericEncode :: forall a rep. Generic a rep => GenericEncode rep => Options -> a -> ForeignGenerate a Foreign value compatible with the readGeneric function.
decodeJSON :: forall a. Decode a => String -> F aDecode a JSON string using a Decode instance.
encodeJSON :: forall a. Encode a => a -> StringEncode value that has an Encode instance into a JSON string.
genericDecodeJSON :: forall a rep. Generic a rep => GenericDecode rep => Options -> String -> F aRead a value which has a Generic type from a JSON String
genericEncodeJSON :: forall a rep. Generic a rep => GenericEncode rep => Options -> a -> StringWrite a value which has a Generic type as a JSON String