monadloc-0.1: A class for monads which can keep a stack trace

The monadloc package

This package defines a class for monads which can keep a monadic call trace.

. See http://pepeiborra.posterous.com/monadic-stack-traces-that-make-a-lot-of-sense for more information.

A preprocessor is provided which can insert calls to withLoc before every monadic statement in a module.

To invoke the preprocessor, add the following pragma at the top of a source file:

> -# OPTIONS_GHC -F -pgmF MonadLoc #-

together with an import for the @Control.Monad.Loc@ module

This package provides no implementation of the MonadLoc interface. Currently the only package that does so is "control-monad-exception", but any other package can implement it and provide monadic call traces.

Properties

Versions0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
Dependenciesbase (3.*), haskell-src-exts, pretty, template-haskell or
base (4.*), haskell-src-exts, pretty, syb, template-haskell
LicensePublicDomain
AuthorPepe Iborra
Maintainerpepeiborra@gmail.com
Stabilityexperimental
CategoryControl, Monads
Home pagehttp://github.com/pepeiborra/monadloc
ExecutablesMonadLoc
Upload dateMon Nov 2 22:05:29 UTC 2009
Uploaded byPepeIborra
Build failureghc-6.10 (log), ghc-6.12 (log)

Modules

Downloads