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.
- 1 type
- 7 values
- Packagederiving-compat-0.6.8
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDeriving.hs
Functor
6 declarationsLike deriveFunctor, but takes an FFTOptions argument.
Like makeFmap, but takes an FFTOptions argument.
Like makeReplace, but takes an FFTOptions argument.
FFTOptions
2 declarationsOptions 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.)