HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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