effectful-core-2.6.0.0: An easy to use, performant extensible effects library.
Safe HaskellNone
LanguageHaskell2010

Effectful.Prim

Description

Provider of the MonadPrim instance for Eff.

Synopsis

Effect

data Prim (a :: Type -> Type) b 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 :: forall (es :: [Effect]) a. (HasCallStack, IOE :> es) => Eff (Prim ': es) a -> Eff es a Source #

Run an Eff computation with primitive state-transformer actions.