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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

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

  • 1 type
  • 2 values

Writer carrier

3 declarations
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

0 declarations