monoids-0.3.2: Deprecated: Use 'reducers'

Portabilitynon-portable (type families, MPTCs)
Stabilityexperimental
Maintainer[email protected]
Safe HaskellSafe-Infered

Data.Monoid.Combinators

Contents

Description

Utilities for working with Monoids that conflict with names from the Prelude, Data.Foldable, Control.Monad or elsewhere. Intended to be imported qualified.

 import Data.Monoid.Combinators as Monoid 

Synopsis

List-Like Monoid Production

repeat :: e `Reducer` m => e -> mSource

A generalization of repeat to an arbitrary Monoid. May fail to terminate for some values in some monoids.

cycle :: Monoid m => m -> mSource

A generalization of cycle to an arbitrary Monoid. May fail to terminate for some values in some monoids.