extensible-effects-3.0.0.0: An Alternative to Monad Transformers

Safe HaskellSafe
LanguageHaskell2010

Control.Eff.Trace

Description

A Trace effect for debugging

Synopsis

Documentation

data Trace v where Source #

Trace effect for debugging

Constructors

Trace :: String -> Trace () 

trace :: Member Trace r => String -> Eff r () Source #

Print a string as a trace.

runTrace :: Eff '[Trace] w -> IO w Source #

Run a computation producing Traces. The handler for IO request: a terminal handler