Data.Semigroup.Foldable.Class

semigroupoids-5.1: Semigroupoids: Category sans id

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.Foldable.Class

Description

# Documentation

class Foldable t => Foldable1 t where #

Methods

fold1 :: Semigroup m => t m -> m #

foldMap1 :: Semigroup m => (a -> m) -> t a -> m #

Instances

Foldable1 Identity # |
Methods fold1 :: Semigroup m => Identity m -> m # foldMap1 :: Semigroup m => (a -> m) -> Identity a -> m #
Foldable1 NonEmpty # |
Methods fold1 :: Semigroup m => NonEmpty m -> m # foldMap1 :: Semigroup m => (a -> m) -> NonEmpty a -> m #
Foldable1 Tree # |
Methods fold1 :: Semigroup m => Tree m -> m # foldMap1 :: Semigroup m => (a -> m) -> Tree a -> m #
Foldable1 ((,) a) # |
Methods fold1 :: Semigroup m => (a, m) -> m # foldMap1 :: Semigroup m => (a -> m) -> (a, a) -> m #
Foldable1 f => Foldable1 (Lift f) # |
Methods fold1 :: Semigroup m => Lift f m -> m # foldMap1 :: Semigroup m => (a -> m) -> Lift f a -> m #
Bifoldable1 p => Foldable1 (Join * p) # |
Methods fold1 :: Semigroup m => Join * p m -> m # foldMap1 :: Semigroup m => (a -> m) -> Join * p a -> m #
Foldable1 m => Foldable1 (IdentityT * m) # |
Methods fold1 :: Semigroup m => IdentityT * m m -> m # foldMap1 :: Semigroup m => (a -> m) -> IdentityT * m a -> m #
Foldable1 f => Foldable1 (Reverse * f) # |
Methods fold1 :: Semigroup m => Reverse * f m -> m # foldMap1 :: Semigroup m => (a -> m) -> Reverse * f a -> m #
Foldable1 f => Foldable1 (Backwards * f) # |
Methods fold1 :: Semigroup m => Backwards * f m -> m # foldMap1 :: Semigroup m => (a -> m) -> Backwards * f a -> m #
(Foldable1 f, Foldable1 g) => Foldable1 (Sum * f g) # |
Methods fold1 :: Semigroup m => Sum * f g m -> m # foldMap1 :: Semigroup m => (a -> m) -> Sum * f g a -> m #
(Foldable1 f, Foldable1 g) => Foldable1 (Product * f g) # |
Methods fold1 :: Semigroup m => Product * f g m -> m # foldMap1 :: Semigroup m => (a -> m) -> Product * f g a -> m #
(Foldable1 f, Foldable1 g) => Foldable1 (Compose * * f g) # |
Methods fold1 :: Semigroup m => Compose * * f g m -> m # foldMap1 :: Semigroup m => (a -> m) -> Compose * * f g a -> m #
Foldable1 g => Foldable1 (Joker * * g a) # |
Methods fold1 :: Semigroup m => Joker * * g a m -> m # foldMap1 :: Semigroup m => (a -> m) -> Joker * * g a a -> m #

class Bifoldable t => Bifoldable1 t where #

Methods

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

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

Instances

Bifoldable1 Either # |
Methods bifold1 :: Semigroup m => Either m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Either a b -> m #
Bifoldable1 (,) # |
Methods bifold1 :: Semigroup m => (m, m) -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (a, b) -> m #
Bifoldable1 Arg # |
Methods bifold1 :: Semigroup m => Arg m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Arg a b -> m #
Bifoldable1 ((,,) x) # |
Methods bifold1 :: Semigroup m => (x, m, m) -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (x, a, b) -> m #
Bifoldable1 (Const *) # |
Methods bifold1 :: Semigroup m => Const * m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Const * a b -> m #
Bifoldable1 (Tagged *) # |
Methods bifold1 :: Semigroup m => Tagged * m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Tagged * a b -> m #
Bifoldable1 ((,,,) x y) # |
Methods bifold1 :: Semigroup m => (x, y, m, m) -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (x, y, a, b) -> m #
Bifoldable1 ((,,,,) x y z) # |
Methods bifold1 :: Semigroup m => (x, y, z, m, m) -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (x, y, z, a, b) -> m #
Bifoldable1 p => Bifoldable1 (WrappedBifunctor * * p) # |
Methods bifold1 :: Semigroup m => WrappedBifunctor * * p m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> WrappedBifunctor * * p a b -> m #
Foldable1 g => Bifoldable1 (Joker * * g) # |
Methods bifold1 :: Semigroup m => Joker * * g m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Joker * * g a b -> m #
Bifoldable1 p => Bifoldable1 (Flip * * p) # |
Methods bifold1 :: Semigroup m => Flip * * p m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Flip * * p a b -> m #
Foldable1 f => Bifoldable1 (Clown * * f) # |
Methods bifold1 :: Semigroup m => Clown * * f m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Clown * * f a b -> m #
(Bifoldable1 f, Bifoldable1 g) => Bifoldable1 (Product * * f g) # |
Methods bifold1 :: Semigroup m => Product * * f g m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Product * * f g a b -> m #
(Foldable1 f, Bifoldable1 p) => Bifoldable1 (Tannen * * * f p) # |
Methods bifold1 :: Semigroup m => Tannen * * * f p m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Tannen * * * f p a b -> m #
(Bifoldable1 p, Foldable1 f, Foldable1 g) => Bifoldable1 (Biff * * * * p f g) # |
Methods bifold1 :: Semigroup m => Biff * * * * p f g m m -> m # bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Biff * * * * p f g a b -> m #