generic-deriving-1.12.2: Generic programming library for generalised deriving.

Safe HaskellTrustworthy

Generics.Deriving.Functor

Contents

Synopsis

Generic Functor class

class GFunctor f where

Methods

gmap :: (a -> b) -> f a -> f b

Instances

GFunctor [] 
GFunctor IO 
GFunctor Maybe 
GFunctor Sum 
GFunctor Product 
GFunctor Dual 
GFunctor Last 
GFunctor First 
GFunctor ZipList 
GFunctor Complex 
GFunctor Down 
GFunctor ((->) r) 
GFunctor (Either a) 
GFunctor ((,) a) 
GFunctor (Const m) 

Default method

gmapdefault :: (Generic1 f, GFunctor' (Rep1 f)) => (a -> b) -> f a -> f b

Internal Functor class

class GFunctor' f where

Methods

gmap' :: (a -> b) -> f a -> f b

Instances