Copyright | (c) 2019-2021 Rudy Matela |
---|---|
License | 3-Clause BSD (see the file LICENSE) |
Maintainer | Rudy Matela <rudy@matela.com.br> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Allows automatic derivation of Name
typeclass instances.
Synopsis
- deriveName :: Name -> DecsQ
- deriveNameCascading :: Name -> DecsQ
- deriveNameIfNeeded :: Name -> DecsQ
Documentation
deriveName :: Name -> DecsQ Source #
deriveNameCascading :: Name -> DecsQ Source #
deriveNameIfNeeded :: Name -> DecsQ Source #
Same as deriveName
but does not warn when instance already exists
(deriveName
is preferable).