Copyright | (C) 2015-2016 Ryan Scott |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Ryan Scott |
Portability | Template Haskell |
Safe Haskell | None |
Language | Haskell2010 |
Exports functions to mechanically derive Functor
instances.
For more info on how deriving Functor
works, see
this GHC wiki page.
Functor
deriveFunctor :: Name -> Q [Dec] Source #
Generates a Functor
instance declaration for the given data type or data
family instance.