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

Modulestreamly-core-0.2.2Haskell2010

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.2.2 · Streamly.Internal.Data.Builder
  • Functor m => Functor (Builder s m)Defined in streamly-core-0.2.2 · 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.2.2 · Streamly.Internal.Data.Builder