Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.EvalRecord.TH
Synopsis
- mkEvalRecord :: DecsQ -> DecsQ
- mkEvalRecordWith :: DeclareRecordConfig -> DecsQ -> DecsQ
- data DeclareRecordConfig = DeclareRecordConfig {}
- passthrough :: DeclareRecordConfig
Documentation
mkEvalRecord :: DecsQ -> DecsQ Source #
Defines a synonym for the bare type with the same name. The strippable definition is suffixed by B, and the covered type is suffixed by H.
mkEvalRecordWith :: DeclareRecordConfig -> DecsQ -> DecsQ Source #
Generate a higher-kinded data declaration using a custom config.
Note that sum types are not currently supported.
data DeclareRecordConfig Source #
Constructors
DeclareRecordConfig | |
Fields
|
passthrough :: DeclareRecordConfig Source #
Defines a synonym for the bare type with the same name. The basic definition is suffixed by F, and the unwrapped basic type has no suffix.