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

Contents
  1. State carrier
  2. State effect
Synopsis

State carrier

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