Copyright | (C) 2017 ATS Advanced Telematic Systems GmbH Li-yao Xia |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Li-yao Xia <lysxia@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Template Haskell functions to derive higher-order structures.
- deriveHClasses :: Name -> Q [Dec]
- deriveHTraversable :: Name -> Q [Dec]
- mkhtraverse :: Name -> Q Exp
- deriveHFoldable :: Name -> Q [Dec]
- mkhfoldMap :: Name -> Q Exp
- deriveHFunctor :: Name -> Q [Dec]
- mkhfmap :: Name -> Q Exp
Documentation
deriveHClasses :: Name -> Q [Dec] Source #
Derive HFunctor
, HFoldable
, HTraversable
.
deriveHTraversable :: Name -> Q [Dec] Source #
deriveHTraversable
''Action ===> instanceHTraversable
Action where ...
deriveHFoldable :: Name -> Q [Dec] Source #
deriveHFoldable
''Action ===> instanceHFoldable
Action where ...
deriveHFunctor :: Name -> Q [Dec] Source #
deriveHFunctor
''Action ===> instanceHFunctor
Action where ...