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 Identity # | |
GFunctor Min # | |
GFunctor Max # | |
GFunctor First # | |
GFunctor Last # | |
GFunctor WrappedMonoid # | |
GFunctor Option # | |
GFunctor NonEmpty # | |
GFunctor Complex # | |
GFunctor ZipList # | |
GFunctor Dual # | |
GFunctor Sum # | |
GFunctor Product # | |
GFunctor First # | |
GFunctor Last # | |
GFunctor ((->) r) # | |
GFunctor (Either a) # | |
GFunctor ((,) a) # | |
GFunctor (Arg a) # | |
GFunctor (Proxy *) # | |
GFunctor (Const * m) # | |
GFunctor f => GFunctor (Alt * f) # | |
(GFunctor f, GFunctor g) => GFunctor (Sum * f g) # | |
(GFunctor f, GFunctor g) => GFunctor (Product * f g) # | |
Default method
gmapdefault :: (Generic1 f, GFunctor' (Rep1 f)) => (a -> b) -> f a -> f b #
Internal Functor class
Minimal complete definition
Instances
GFunctor' U1 # | |
GFunctor' Par1 # | |
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' g) => GFunctor' ((:.:) f g) # | |
GFunctor' f => GFunctor' (M1 i c f) # | |