effectful-zoo-0.0.1.0: Effectful effects for testing
Safe HaskellSafe-Inferred
LanguageGHC2021

Effectful.Zoo.Console.Dynamic.Run

Documentation

data Console a :: Effect where Source #

Constructors

Print :: a -> Console a m () 
Local :: (a -> a) -> m b -> Console a m b 

Instances

Instances details
type DispatchOf (Console a) Source # 
Instance details

Defined in Effectful.Zoo.Console.Dynamic.Effect

runConsole :: HasCallStack => r <: IOE => UnliftStrategy -> (HasCallStack => i -> Eff r ()) -> Eff (Console i : r) a -> Eff r a Source #

runConsoleBrackedToConsole :: HasCallStack => r <: Console i => Eff r b -> Eff r c -> Eff (Console i : r) a -> Eff r a Source #

runConsoleAtomic :: HasCallStack => r <: Concurrent => r <: Console i => Eff (Console i : r) a -> Eff r a Source #