| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | ekmett@gmail.com |
| Safe Haskell | None |
Data.Semigroup.Self
Description
A simple Monoid transformer that takes a Monoid m and produces a new m-Reducer named Self m
This is useful when you have a generator that already contains monoidal values or someone supplies
the map to the monoid in the form of a function rather than as a Reducer instance. You can just
or getSelf . reduce in those scenarios. These behaviors are encapsulated
into the getSelf . mapReduce ffold and foldMap combinators in Data.Monoid.Combinators respectively.