| Safe Haskell | None |
|---|
Data.Yoko.TH
- yokoTH :: Name -> Q [Dec]
- yokoTH_with :: YokoOptions -> Name -> Q [Dec]
- data YokoOptions = YokoOptions {}
- data Mapping = Mapping {}
- yokoDefaults :: YokoOptions
Derivers
yokoTH_with :: YokoOptions -> Name -> Q [Dec]Source
Customized derivation.
Options
data YokoOptions Source
The default yoko derivations can be customised.
Constructors
| YokoOptions | |
Fields
| |
A Mapping identifies the representation type, its constructor, and the
associated mapping function. For example, T1 is represented with Mapping
''T1 'T1 'invmap.
Constructors
| Mapping | |
Fields
| |
yokoDefaults :: YokoOptionsSource
The default options. yokoDefaults = YokoOptions id id id.