Copyright | (C) 2011-2015 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
Data.Semigroup.Bifoldable
Description
Synopsis
- class Bifoldable t => NonEmptyBifoldable t where
- bitraverseNE_ :: (NonEmptyBifoldable t, Semiapplicative f) => (a -> f b) -> (c -> f d) -> t a c -> f ()
- bifor1_ :: (NonEmptyBifoldable t, Semiapplicative f) => t a c -> (a -> f b) -> (c -> f d) -> f ()
- bisequenceA1_ :: (NonEmptyBifoldable t, Semiapplicative f) => t (f a) (f b) -> f ()
- bifoldMapDefaultNE :: (NonEmptyBifoldable t, Monoid m) => (a -> m) -> (b -> m) -> t a b -> m
Documentation
class Bifoldable t => NonEmptyBifoldable t where Source #
Methods
bifoldNE :: Semigroup m => t m m -> m Source #
bifoldMapNE :: Semigroup m => (a -> m) -> (b -> m) -> t a b -> m Source #
Instances
bitraverseNE_ :: (NonEmptyBifoldable t, Semiapplicative f) => (a -> f b) -> (c -> f d) -> t a c -> f () Source #
bifor1_ :: (NonEmptyBifoldable t, Semiapplicative f) => t a c -> (a -> f b) -> (c -> f d) -> f () Source #
bisequenceA1_ :: (NonEmptyBifoldable t, Semiapplicative f) => t (f a) (f b) -> f () Source #
bifoldMapDefaultNE :: (NonEmptyBifoldable t, Monoid m) => (a -> m) -> (b -> m) -> t a b -> m Source #
Usable default for foldMap, but only if you define bifoldMapNE yourself