Generates a Functor instance declaration for the given data type or data family instance.
Modulederiving-compat-0.6.8Haskell2010
Data.Functor.Deriving
Exports functions to mechanically derive Functor instances.
For more info on how deriving Functor works, see
this GHC wiki page.
Synopsis
- value deriveFunctor
- value deriveFunctorOptions
- value makeFmap
- value makeFmapOptions
- value makeReplace
- value makeReplaceOptions
- newtype FFTOptions
- value defaultFFTOptions
- Packagederiving-compat-0.6.8
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDeriving.hs
Like deriveFunctor, but takes an FFTOptions argument.
Like makeFmap, but takes an FFTOptions argument.
Like makeReplace, but takes an FFTOptions argument.
Options that further configure how the functions in Data.Functor.Deriving
should behave. (FFT stands for FunctorFoldableTraversable.)
Constructors
Instances4Eq, Ord, Read, Show
Eq FFTOptionsDefined in deriving-compat-0.6.8 · Data.Functor.Deriving.InternalOrd FFTOptionsDefined in deriving-compat-0.6.8 · Data.Functor.Deriving.InternalRead FFTOptionsDefined in deriving-compat-0.6.8 · Data.Functor.Deriving.InternalShow FFTOptionsDefined in deriving-compat-0.6.8 · Data.Functor.Deriving.Internal
Conservative FFTOptions that doesn't attempt to use EmptyCase (to
prevent users from having to enable that extension at use sites.)