freer-effects-0.3.0.0: Implementation of effect system for Haskell.

Copyright(c) 2016 Allele Dev; 2017 Ixperta Solutions s.r.o.
LicenseBSD3
Maintainerixcom-core@ixperta.com
Stabilityexperimental
PortabilityGHC specific language extensions.
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 a where Source #

A Trace effect; takes a String and performs output.

Constructors

Trace :: String -> Trace () 

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

Printing a string in a trace.

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

An IO handler for Trace effects.