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.Accum.IORef

A carrier for Accum 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 add. The Seq or DList monoids may be a superior choice. This carrier also uses an IORef to store its accumulator, which allows it a MonadUnliftIO instance, but precludes backtracking when run in conjunction with Control.Effect.NonDet.

  • 1 type
  • 3 values

Accum carrier

4 declarations
newtypenewtype AccumC w (m :: Type -> Type) a
#

Constructors

Instances11MonadTrans, Monad, Functor, MonadFix, MonadFail, Applicative, …

Accum effect

0 declarations