Community
Modules 26

Data.Semigroup.Bifoldable

provisional

Re-exports a subset of the Data.Bifoldable1 module along with some additional combinators that require Bifoldable1 constraints.

class (Bifoldable t) => Bifoldable1 (t :: Type -> Type -> Type)

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

Instances

2
  • instance Apply f => Semigroup (Act f a)
  • instance Functor f => Functor (Act f)
Maintainer
Edward Kmett <ekmett@gmail.com>
Portability
portable
Copyright
(C) 2011-2015 Edward Kmett
License
BSD-style (see the file LICENSE)
Build record and source files

Community contribution. The service has not verified this documentation.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-858b1951-web-1

Metadata snapshot: 4ac4693dc44e2bb370a93502d1bf29784374032a00ad7b3d02803e3d433c0b16

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.