registry-aeson-0.2.2.0: Aeson encoders / decoders
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Registry.Aeson.TH.Encoder

Synopsis

Documentation

makeEncoder :: Name -> ExpQ Source #

Make an Encoder for a given data type Usage: $(makeEncoder ''MyDataType) <: otherEncoders

makeMatchClause :: [Name] -> [Type] -> Con -> MatchQ Source #

Make the match clause for a constructor given - the list of all the encoder types - the constructor name - the constructor index in the list of all the constructors for the encoded data type T1 a0 a1 ... -> encodeConstructor ce o (FromConstructor names types cName fieldNames values)