| Portability | TemplateHaskell |
|---|---|
| Stability | experimental |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | Trustworthy |
Language.Haskell.TH.Lens
Description
Lenses and Traversals for working with Template Haskell
- class HasName t where
- class HasTypeVars t where
- class SubstType t where
- typeVars :: HasTypeVars t => Simple Traversal t Name
- substTypeVars :: HasTypeVars t => Map Name Name -> t -> t
- conFields :: Simple Traversal Con StrictType
- conNamedFields :: Simple Traversal Con VarStrictType
Documentation
Has a Name
class HasTypeVars t whereSource
Provides for the extraction of free type variables, and alpha renaming.
Methods
Instances
Provides substitution for types
substTypeVars :: HasTypeVars t => Map Name Name -> t -> tSource
Substitute using a map of names in for free type variables
conFields :: Simple Traversal Con StrictTypeSource
Provides a Traversal of the types of each field of a constructor.
conNamedFields :: Simple Traversal Con VarStrictTypeSource
Traversal of the types of the named fields of a constructor.