HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Data.Builder

Contents
  1. Imports
  2. Types
Synopsis

Imports

Types

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