HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Data.Builder

  • 1 type

Imports

0 declarations

Types

1 declaration
newtypenewtype Builder s (m :: Type -> Type) a
#

A simple stateful function composing monad that chains state passing functions. This can be considered as a simplified version of the State monad or even a Fold. Unlike fold the step function is one-shot and not called in a loop.

Constructors

Instances3Monad, Functor, Applicative
  • Monad m => Monad (Builder a m)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Builder
  • Functor m => Functor (Builder s m)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Builder

    Maps a function on the output of the fold (the type b).

  • Monad m => Applicative (Builder a m)Defined in streamly-core-0.3.1 · Streamly.Internal.Data.Builder