freer-0.2.2.5: Implementation of the Freer Monad

CopyrightAlej Cabrera 2015
LicenseBSD-3
Maintainer[email protected]
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Control.Monad.Freer.Trace

Description

Composable handler for Trace effects. Trace allows one to debug the operation of sequences of effects by outputing to the console.

Using http://okmij.org/ftp/Haskell/extensible/Eff1.hs as a starting point.

Synopsis

Documentation

data Trace v Source

A Trace effect; takes a String and performs output

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

Printing a string in a trace

runTrace :: Eff `[Trace]` w -> IO w Source

An IO handler for Trace effects