SimpleH-1.0: A light, clean and powerful Haskell utility library

Safe HaskellNone

SimpleH.Traversable

Documentation

class Functor t => Contravariant t whereSource

Methods

collect :: Functor f => f (t a) -> t (f a)Source

Instances

traverse :: (Applicative f, Traversable t) => (a -> f b) -> t a -> f (t b)Source

foreach :: (Applicative f, Traversable t) => t a -> (a -> f b) -> f (t b)Source

transpose :: (Applicative f, Traversable t) => t (f a) -> f (t a)Source

flip :: (Contravariant c, Functor f) => f (c a) -> c (f a)Source