HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulereducers-3.12.5Haskell2010

Data.Semigroup.Self

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 getSelf . reduce or getSelf . mapReduce f in those scenarios. These behaviors are encapsulated into the fold and foldMap combinators in Data.Monoid.Combinators respectively.

  • 1 type
  • Packagereducers-3.12.5
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSelf.hs
newtypenewtype Self m
#

Constructors

Instances8Functor, Foldable, Traversable, Foldable1, Traversable1, Reducer, …