bifunctors-0.1.1.2: Haskell 98 bifunctors

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>

Data.Semigroup.Bifoldable

Description

 

Synopsis

Documentation

class Bifoldable t => Bifoldable1 t whereSource

Methods

bifold1 :: Semigroup m => t m m -> mSource

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> t a b -> mSource

bitraverse1_ :: (Bifoldable1 t, Apply f) => (a -> f b) -> (c -> f d) -> t a c -> f ()Source

bifor1_ :: (Bifoldable1 t, Apply f) => t a c -> (a -> f b) -> (c -> f d) -> f ()Source

bisequenceA1_ :: (Bifoldable1 t, Apply f) => t (f a) (f b) -> f ()Source

bifoldMapDefault1 :: (Bifoldable1 t, Monoid m) => (a -> m) -> (b -> m) -> t a b -> mSource

Usable default for foldMap, but only if you define bifoldMap1 yourself