|
| Data.Monoid.Combinators | | Portability | non-portable (type families, MPTCs) | | Stability | experimental | | Maintainer | ekmett@gmail.com |
|
|
|
|
|
| Description |
Utilities for working with Monoids that conflict with names from the Prelude — unavailable from the original server (HTTP 404),
Data.Foldable — unavailable from the original server (HTTP 404), Control.Monad — unavailable from the original server (HTTP 404) or elsewhere. Intended to be imported qualified.
import Data.Monoid.Combinators as Monoid
|
|
| Synopsis |
|
|
|
|
| List-Like Monoid Production
|
|
|
| A generalization of Data.List.repeat to an arbitrary Monoid. May fail to terminate for some values in some monoids.
|
|
| replicate :: (Monoid m, Integral n) => m -> n -> m | Source |
|
| A generalization of Data.List.replicate to an arbitrary Monoid. Adapted from
http://augustss.blogspot.com/2008/07/lost-and-found-if-i-write-108-in.html
|
|
| cycle :: Monoid m => m -> m | Source |
|
| A generalization of Data.List.cycle to an arbitrary Monoid. May fail to terminate for some values in some monoids.
|
|
| QuickCheck Properties
|
|
| prop_replicate_right_distributive :: (Eq m, Monoid m, Arbitrary m, Integral n) => m -> n -> n -> Bool | Source |
|
|
| Produced by Haddock version 2.3.0 |