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.State.Church

A church-encoded carrier for the State effect.

Note that the parameter order in runState, evalState, and execState is reversed compared the equivalent functions provided by transformers. This is an intentional decision made to enable the composition of effect handlers with . without invoking flip.

  • 1 type
  • 3 values

State carrier

4 declarations
newtypenewtype StateC s (m :: Type -> Type) a
#

Constructors

  • StateC (forall r. (s -> a -> m r) -> s -> m r)
Instances10MonadTrans, Monad, Functor, MonadFix, MonadFail, Applicative, …

State effect

0 declarations