polysemy-zoo-0.4.0.1: Experimental, user-contributed effects and interpreters for polysemy

Safe HaskellNone
LanguageHaskell2010

Polysemy.ConstraintAbsorber.MonadState

Synopsis

Documentation

absorbState Source #

Arguments

:: Member (State s) r 
=> (MonadState s (Sem r) => Sem r a)

A computation that requires an instance of MonadState for Sem. This might be something with type MonadState s m => m a.

-> Sem r a 

Introduce a local MonadState constraint on Sem --- allowing it to interop nicely with MTL.

Since: 0.3.0.0