Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Declares serveral templates for comfortable instance derivation
Synopsis
- mkScanner :: Name -> Q [Dec]
- mkPrinter :: Name -> Q [Dec]
- mkFinalizer :: Name -> Q [Dec]
- mkExpander :: Name -> Q [Dec]
- mkExpanderEnv :: Name -> Q [Dec]
- mkHistoryEnv :: Name -> Q [Dec]
- mkInteractor :: InteractorMaker i => Name -> i
- mkChatty :: Name -> Q [Dec]
- mkChannelPrinter :: Name -> Name -> Q [Dec]
- mkDefCP :: Name -> Q [Dec]
- mkArchiver :: Name -> Q [Dec]
- mkExtendedPrinter :: Name -> Q [Dec]
- mkBufferedScanner :: Name -> Q [Dec]
- mkCounter :: Name -> Q [Dec]
- mkAtoms :: Name -> Q [Dec]
Documentation
mkInteractor :: InteractorMaker i => Name -> i Source #
mkInteractor takes a type name and a list of typeclass derivers and applies them all.
mkChannelPrinter :: Name -> Name -> Q [Dec] Source #
Automatically derives a ChChannelPrinter instance for you.
mkArchiver :: Name -> Q [Dec] Source #
Automatically derives all chatty typeclasses that are sensible for an ArchiverT.
mkExtendedPrinter :: Name -> Q [Dec] Source #
Automatically derives an ChExtendedPrinter instance for you.