simplistic-generics-2.0.0: Generic programming without too many type classes
Generics.Simplistic.Derive.Functor
gfmap' :: OnLeaves1 Trivial Functor f => (a -> b) -> SRep1 f a -> SRep1 f b Source #
SRep1 is a functor
SRep1
gfmap :: (Simplistic1 f, OnLeaves1 Trivial Functor (Rep1 f)) => (a -> b) -> f a -> f b Source #
The action of f over arrows can be obtained by translating into the generic representation, using the generic gfmap' and translating back to regular representation.
gfmap'