codec-0.1.1: First-class record construction and bidirectional serialization

Safe HaskellNone
LanguageHaskell2010

Data.Codec.TH

Synopsis

Documentation

genFields :: Name -> Q [Dec] Source

Generate Fields for a given data type. Currently only single-constructor records are supported. Each record field a will be turned into a Field f_a, and all constructors will be turned into Cons.