Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | generics@haskell.org |
This module contains Template Haskell code that can be used to automatically generate the boilerplate code for the generic deriving library.
Documentation
deriveAll :: Name -> Q [Dec]Source
Given the type and the name (as string) for the type to derive,
generate the Constructor
instances and the Representable
instance.
deriveConstructors :: Name -> Q [Dec]Source
Given a datatype name, derive datatypes and
instances of class Constructor
.
deriveRepresentable :: Name -> Q [Dec]Source
Given the type and the name (as string) for the Representable type
synonym to derive, generate the Representable
instance.