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

Safe HaskellSafe-Inferred

Generics.Deriving.Traversable

Contents

Synopsis

GTraversable class

class (GFunctor t, GFoldable t) => GTraversable t whereSource

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