aeson-gadt-th-0.1.0.0: Derivation of Aeson instances for GADTs

Safe HaskellNone
LanguageHaskell2010

Data.Aeson.GADT.TH

Synopsis

Documentation

deriveJSONGADT :: Name -> DecsQ Source #

Derive ToJSON and FromJSON instances for the name GADT

deriveGADTInstances :: Name -> DecsQ Source #

Deprecated: Use deriveJSONGADT instead

conMatchesEqTagged :: Con -> [MatchQ] Source #

Generate all required matches (and some redundant ones...) for eqTagged for some constructor

conMatchesToJSON :: Con -> MatchQ Source #

Implementation of toJSON

conMatchesParseJSON :: ExpQ -> Con -> MatchQ Source #

Implementation of parseJSON