HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.

Contents
  1. Generators
  2. Generator Transformers
  3. Combinators
Synopsis
  • Packagereducers-3.12.5
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceGenerator.hs

Generators

classclass Generator c where

minimal definition mapReduce or mapTo

Associated types

Methods

Instances22Generator, …

Generator Transformers

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