bifunctors-3.2.0.1: Haskell 98 bifunctors

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

Data.Bitraversable

Description

 

Documentation

class (Bifunctor t, Bifoldable t) => Bitraversable t where

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> t a b -> f (t c d)

bisequenceA :: Applicative f => t (f a) (f b) -> f (t a b)

bimapM :: Monad m => (a -> m c) -> (b -> m d) -> t a b -> m (t c d)

bisequence :: Monad m => t (m a) (m b) -> m (t a b)

bifor :: (Bitraversable t, Applicative f) => t a b -> (a -> f c) -> (b -> f d) -> f (t c d)

biforM :: (Bitraversable t, Monad m) => t a b -> (a -> m c) -> (b -> m d) -> m (t c d)

bimapAccumL :: Bitraversable t => (a -> b -> (a, c)) -> (a -> d -> (a, e)) -> a -> t b d -> (a, t c e)

bimapAccumR :: Bitraversable t => (a -> b -> (a, c)) -> (a -> d -> (a, e)) -> a -> t b d -> (a, t c e)

bimapDefault :: Bitraversable t => (a -> b) -> (c -> d) -> t a c -> t b d

bifoldMapDefault :: (Bitraversable t, Monoid m) => (a -> m) -> (b -> m) -> t a b -> m