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

Safe HaskellSafe-Inferred
LanguageHaskell98

Generics.Deriving.Traversable

Contents

Synopsis

GTraversable class

class (GFunctor t, GFoldable t) => GTraversable t where Source

Minimal complete definition

Nothing

Methods

gtraverse :: Applicative f => (a -> f b) -> t a -> f (t b) Source

gsequenceA :: Applicative f => t (f a) -> f (t a) Source

gmapM :: Monad m => (a -> m b) -> t a -> m (t b) Source

gsequence :: Monad m => t (m a) -> m (t a) Source

Default method

gtraversedefault :: (Generic1 t, GTraversable' (Rep1 t), Applicative f) => (a -> f b) -> t a -> f (t b) Source