semigroupoids-5.0.1: Semigroupoids: Category sans id

Copyright(C) 2011-2015 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Data.Semigroup.Bifoldable

Description

 

Synopsis

Documentation

class Bifoldable t => Bifoldable1 t where

Minimal complete definition

Nothing

Methods

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

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

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

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

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

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

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