acme-kitchen-sink-0.1.0.0: A place for dumping that does-not-feel-right code while you improve it

Safe HaskellSafe
LanguageHaskell2010

Data.Monoid.Acme

Synopsis

Documentation

mmany :: (Alternative a, Monoid m) => a m -> a m Source #

Many generalization for Monoid instances.

Issue #2

msome :: (Alternative a, Monoid m) => a m -> a m Source #

Some generatlization for Monoid instances.

Issue #2

manyWith :: (Alternative a, Monoid m) => (v -> m) -> (m -> v) -> a v -> a v Source #

Utility for casting bare values into a Monoid in mmany.

For example, the function:

 let sumMany = manyWith Sum getSum

will sum the results of many.

Issue #2

someWith :: (Alternative a, Monoid m) => (v -> m) -> (m -> v) -> a v -> a v Source #

Utility for casting bare values into a Monoid in msome.

For example, the function:

let sumSome = someWith Sum getSum

will sum the results of some.

Issue #2