freer-0.2.4.1: Implementation of the Freer Monad

CopyrightAllele Dev 2016
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