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

Description

 

Documentation

class Foldable t => Foldable1 t where Source #

Methods

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

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

Instances

Foldable1 Identity Source # 

Methods

fold1 :: Semigroup m => Identity m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Identity a -> m Source #

Foldable1 NonEmpty Source # 

Methods

fold1 :: Semigroup m => NonEmpty m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> NonEmpty a -> m Source #

Foldable1 Tree Source # 

Methods

fold1 :: Semigroup m => Tree m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Tree a -> m Source #

Foldable1 ((,) a) Source # 

Methods

fold1 :: Semigroup m => (a, m) -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> (a, a) -> m Source #

Foldable1 f => Foldable1 (Lift f) Source # 

Methods

fold1 :: Semigroup m => Lift f m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Lift f a -> m Source #

Bifoldable1 p => Foldable1 (Join * p) Source # 

Methods

fold1 :: Semigroup m => Join * p m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Join * p a -> m Source #

Foldable1 m => Foldable1 (IdentityT * m) Source # 

Methods

fold1 :: Semigroup m => IdentityT * m m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> IdentityT * m a -> m Source #

Foldable1 f => Foldable1 (Reverse * f) Source # 

Methods

fold1 :: Semigroup m => Reverse * f m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Reverse * f a -> m Source #

Foldable1 f => Foldable1 (Backwards * f) Source # 

Methods

fold1 :: Semigroup m => Backwards * f m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Backwards * f a -> m Source #

(Foldable1 f, Foldable1 g) => Foldable1 (Sum * f g) Source # 

Methods

fold1 :: Semigroup m => Sum * f g m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Sum * f g a -> m Source #

(Foldable1 f, Foldable1 g) => Foldable1 (Product * f g) Source # 

Methods

fold1 :: Semigroup m => Product * f g m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Product * f g a -> m Source #

(Foldable1 f, Foldable1 g) => Foldable1 (Compose * * f g) Source # 

Methods

fold1 :: Semigroup m => Compose * * f g m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Compose * * f g a -> m Source #

Foldable1 g => Foldable1 (Joker * * g a) Source # 

Methods

fold1 :: Semigroup m => Joker * * g a m -> m Source #

foldMap1 :: Semigroup m => (a -> m) -> Joker * * g a a -> m Source #

class Bifoldable t => Bifoldable1 t where Source #

Methods

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

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

Instances

Bifoldable1 Either Source # 

Methods

bifold1 :: Semigroup m => Either m m -> m Source #

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

Bifoldable1 (,) Source # 

Methods

bifold1 :: Semigroup m => (m, m) -> m Source #

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

Bifoldable1 Arg Source # 

Methods

bifold1 :: Semigroup m => Arg m m -> m Source #

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

Bifoldable1 ((,,) x) Source # 

Methods

bifold1 :: Semigroup m => (x, m, m) -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (x, a, b) -> m Source #

Bifoldable1 (Const *) Source # 

Methods

bifold1 :: Semigroup m => Const * m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Const * a b -> m Source #

Bifoldable1 (Tagged *) Source # 

Methods

bifold1 :: Semigroup m => Tagged * m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Tagged * a b -> m Source #

Bifoldable1 ((,,,) x y) Source # 

Methods

bifold1 :: Semigroup m => (x, y, m, m) -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (x, y, a, b) -> m Source #

Bifoldable1 ((,,,,) x y z) Source # 

Methods

bifold1 :: Semigroup m => (x, y, z, m, m) -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> (x, y, z, a, b) -> m Source #

Bifoldable1 p => Bifoldable1 (WrappedBifunctor * * p) Source # 

Methods

bifold1 :: Semigroup m => WrappedBifunctor * * p m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> WrappedBifunctor * * p a b -> m Source #

Foldable1 g => Bifoldable1 (Joker * * g) Source # 

Methods

bifold1 :: Semigroup m => Joker * * g m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Joker * * g a b -> m Source #

Bifoldable1 p => Bifoldable1 (Flip * * p) Source # 

Methods

bifold1 :: Semigroup m => Flip * * p m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Flip * * p a b -> m Source #

Foldable1 f => Bifoldable1 (Clown * * f) Source # 

Methods

bifold1 :: Semigroup m => Clown * * f m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Clown * * f a b -> m Source #

(Bifoldable1 f, Bifoldable1 g) => Bifoldable1 (Product * * f g) Source # 

Methods

bifold1 :: Semigroup m => Product * * f g m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Product * * f g a b -> m Source #

(Foldable1 f, Bifoldable1 p) => Bifoldable1 (Tannen * * * f p) Source # 

Methods

bifold1 :: Semigroup m => Tannen * * * f p m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Tannen * * * f p a b -> m Source #

(Bifoldable1 p, Foldable1 f, Foldable1 g) => Bifoldable1 (Biff * * * * p f g) Source # 

Methods

bifold1 :: Semigroup m => Biff * * * * p f g m m -> m Source #

bifoldMap1 :: Semigroup m => (a -> m) -> (b -> m) -> Biff * * * * p f g a b -> m Source #