HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulereducers-3.12.5Haskell2010

Data.Generator

A Generator c is a possibly-specialized container, which contains values of type Elem c, and which knows how to efficiently apply a Reducer to extract an answer.

Since a Generator is not polymorphic in its contents, it is more specialized than Data.Foldable.Foldable, and a Reducer may supply efficient left-to-right and right-to-left reduction strategies that a Generator may avail itself of.

  • 3 types
  • 1 class
  • 3 values
  • Packagereducers-3.12.5
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceGenerator.hs

Generators

1 declaration
classclass Generator c where
#

minimal definition mapReduce or mapTo

Associated types

Methods

Instances22Generator, …

Generator Transformers

3 declarations
newtypenewtype Keys c
#

a Generator transformer that asks only for the keys of an indexed container

Constructors

Instances6Generator, Elem
newtypenewtype Values c
#

a Generator transformer that asks only for the values contained in an indexed container

Constructors

Instances6Generator, Elem
newtypenewtype Char8 c
#

a Generator transformer that treats Word8 as Char This lets you use a ByteString as a Char source without going through a Monoid transformer like UTF8

Constructors

Instances4Generator, Elem

Combinators

3 declarations