freer-0.2.2.2: Implementation of the Freer Monad

CopyrightAlej Cabrera 2015
LicenseBSD-3
Maintainercpp.cabrera@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
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