Module

Data.Argonaut.Generic.Options

Package
purescript-argonaut-generic-codecs
Repository
eskimor/purescript-argonaut-generic-codecs

Options for generic encoding/decoding.

#Options Source

newtype Options

Constructors

#SumEncoding Source

data SumEncoding

Constructors

#dummyUserEncoding Source

dummyUserEncoding :: Options -> GenericSignature -> GenericSpine -> Maybe Json

Use this for userEncoding if you don't want any special rules.

#dummyUserDecoding Source

dummyUserDecoding :: Options -> GenericSignature -> Json -> Maybe (Either String GenericSpine)

Use this for userDecodeing if you don't want any special rules.