Copyright | (c) Song Zhang |
---|---|
License | BSD-style (see the LICENSE file) |
Maintainer | haskell.zhang.song `at` hotmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.Derive.TopDown
Description
Synopsis
- module Data.Derive.TopDown.Standalone
- module Data.Derive.TopDown.Instance
- module Data.Derive.TopDown.TH
- module Data.Derive.TopDown.CxtGen
- char :: Name
- int :: Name
- int8 :: Name
- int16 :: Name
- int32 :: Name
- int64 :: Name
- word :: Name
- word8 :: Name
- word16 :: Name
- word32 :: Name
- word64 :: Name
- primitives :: [Name]
- state :: Name
- realWorld :: Name
- stock :: DerivStrategy
- anyclass :: DerivStrategy
- newtype_ :: DerivStrategy
- data DerivStrategy
Documentation
module Data.Derive.TopDown.Instance
module Data.Derive.TopDown.TH
module Data.Derive.TopDown.CxtGen
primitives :: [Name] Source #
list of Name
: [char, int, int8, int16, int32, int64, word, word8, word16, word32, word64]
stock :: DerivStrategy Source #
The name sock
and anyclass
are still allowed to be used as functions or arguments.
See https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/DerivingStrategies
anyclass :: DerivStrategy Source #
The name sock
and anyclass
are still allowed to be used as functions or arguments.
See https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/DerivingStrategies
newtype_ :: DerivStrategy Source #
The name sock
and anyclass
are still allowed to be used as functions or arguments.
See https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/DerivingStrategies
data DerivStrategy #
What the user explicitly requests when deriving an instance.
Constructors
StockStrategy | A "standard" derived instance |
AnyclassStrategy | -XDeriveAnyClass |
NewtypeStrategy | -XGeneralizedNewtypeDeriving |