| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Generics.Deriving.Functor
Generic Functor class
Methods
gmap :: (a -> b) -> f a -> f b #
gmap :: (Generic1 f, GFunctor' (Rep1 f)) => (a -> b) -> f a -> f b #
Instances
| GFunctor [] # | |
| GFunctor Maybe # | |
| GFunctor IO # | |
| GFunctor Complex # | |
| GFunctor Min # | |
| GFunctor Max # | |
| GFunctor First # | |
| GFunctor Last # | |
| GFunctor WrappedMonoid # | |
| GFunctor Option # | |
| GFunctor NonEmpty # | |
| GFunctor ZipList # | |
| GFunctor Identity # | |
| GFunctor Dual # | |
| GFunctor Sum # | |
| GFunctor Product # | |
| GFunctor First # | |
| GFunctor Last # | |
| GFunctor (Either a) # | |
| GFunctor ((,) a) # | |
| GFunctor (Arg a) # | |
| GFunctor (Proxy *) # | |
| GFunctor (Const * m) # | |
| GFunctor f => GFunctor (Alt * f) # | |
| GFunctor ((->) LiftedRep LiftedRep r) # | |
| (GFunctor f, GFunctor g) => GFunctor (Product * f g) # | |
| (GFunctor f, GFunctor g) => GFunctor (Sum * f g) # | |
Default method
gmapdefault :: (Generic1 f, GFunctor' (Rep1 f)) => (a -> b) -> f a -> f b #
Internal Functor class
Minimal complete definition
Instances
| GFunctor' Par1 # | |
| GFunctor' (V1 *) # | |
| GFunctor' (U1 *) # | |
| GFunctor' (UAddr *) # | |
| GFunctor' (UChar *) # | |
| GFunctor' (UDouble *) # | |
| GFunctor' (UFloat *) # | |
| GFunctor' (UInt *) # | |
| GFunctor' (UWord *) # | |
| GFunctor f => GFunctor' (Rec1 * f) # | |
| GFunctor' (K1 * i c) # | |
| (GFunctor' f, GFunctor' g) => GFunctor' ((:+:) * f g) # | |
| (GFunctor' f, GFunctor' g) => GFunctor' ((:*:) * f g) # | |
| GFunctor' f => GFunctor' (M1 * i c f) # | |
| (GFunctor f, GFunctor' g) => GFunctor' ((:.:) * * f g) # | |