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

Modulefused-effects-1.1.2.7Haskell2010

Control.Carrier.Writer.Strict

A carrier for Writer effects. This carrier performs its append operations strictly and thus avoids the space leaks inherent in lazy writer monads. These appends are left-associative; as such, [] is a poor choice of monoid for computations that entail many calls to tell. The Seq or DList monoids may be a superior choice.

This implementation is based on a post Gabriel Gonzalez made to the Haskell mailing list: https://mail.haskell.org/pipermail/libraries/2013-March/019528.html

Contents
  1. Writer carrier
  2. Writer effect
Synopsis

Writer carrier

newtypenewtype WriterC w (m :: Type -> Type) a

A space-efficient carrier for Writer effects, implemented atop Control.Carrier.State.Strict.

Constructors

Instances10MonadTrans, Monad, Functor, MonadFix, MonadFail, Applicative, …

Writer effect