Efficiently mapReduce a Generator using the Action monoid. A specialized version of its namesake from Data.Foldable and Control.Monad
mapReduceWith getAction
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulereducers-3.12.5Haskell2010
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.Generator.Combinators as GeneratorEfficiently mapReduce a Generator using the Action monoid. A specialized version of its namesake from Data.Foldable and Control.Monad
mapReduceWith getAction
Convenience function as found in Data.Foldable and Control.Monad
flip mapM_
The sum of a collection of actions, generalizing concat
reduceWith getMonadSum
Efficiently mapReduce a Generator using the Traversal monoid. A specialized version of its namesake from Data.Foldable
mapReduce getTraversal
Convenience function as found in Data.Foldable
flip traverse_
The sum of a collection of actions, generalizing concat
reduceWith getAlt
Efficiently reduce a Generator that contains values of type Bool
reduceWith getAll
Efficiently reduce a Generator that contains values of type Bool
reduceWith getAny
Efficiently mapReduce any Generator checking to see if any of its values match the supplied predicate
mapReduceWith getAny
Efficiently mapReduce any Generator checking to see if all of its values match the supplied predicate
mapReduceWith getAll
Efficiently mapReduce a Generator using the WrappedMonoid monoid. A specialized version of its namesake from Data.Foldable
mapReduceWith unwrapMonoid
Efficiently reduce a Generator using the WrappedMonoid monoid. A specialized version of its namesake from Data.Foldable
reduceWith unwrapMonoid
Type specialization of "foldMap" above
Allows idiomatic specialization of filter by proving a function that will be used to transform the output
Efficiently sum over the members of any Generator
reduceWith getSum
Efficiently take the product of every member of a Generator
reduceWith getProduct
Check to make sure that the supplied value is not a member of the Generator