effectful-core-2.3.0.1: An easy to use, performant extensible effects library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Effectful.Prim

Description

Provider of the MonadPrim instance for Eff.

Synopsis

Effect

data Prim :: Effect Source #

Provide the ability to perform primitive state-transformer actions.

Instances

Instances details
type DispatchOf Prim Source # 
Instance details

Defined in Effectful.Internal.Monad

data StaticRep Prim Source # 
Instance details

Defined in Effectful.Internal.Monad

data PrimStateEff Source #

PrimState token for Eff. Used instead of RealWorld to prevent the Prim effect from executing arbitrary IO actions via ioToPrim.

Handlers

runPrim :: IOE :> es => Eff (Prim ': es) a -> Eff es a Source #

Run an Eff computation with primitive state-transformer actions.