The monadloc package
This package defines a class for monads which can keep a monadic call trace.
See the blog post 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 Control.Monad.Loc.withLoc before every monadic statement in a module. To invoke the preprocessor, add the pragma OPTIONS_GHC -F -pgmF MonadLoc at the top of your Haskell files together with an import for the Control.Monad.Loc module
This package provides no implementation of the Control.Monad.Loc.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
| Versions | 0.1, 0.2, 0.3, 0.4, 0.5, 0.6 |
|---|---|
| Dependencies | base (3.*), haskell-src-exts (≥1.3.0), pretty, template-haskell or base (4.*), haskell-src-exts (≥1.3.0), pretty, syb, template-haskell |
| License | PublicDomain |
| Author | Pepe Iborra |
| Maintainer | pepeiborra@gmail.com |
| Stability | experimental |
| Category | Control, Monads |
| Home page | http://github.com/pepeiborra/monadloc |
| Source repository | git clone git://github.com/pepeiborra/monadloc.git |
| Executables | MonadLoc |
| Upload date | Mon Nov 9 22:09:35 UTC 2009 |
| Uploaded by | PepeIborra |
| Built on | ghc-6.10, ghc-6.12, ghc-7.0, ghc-7.2 |
Modules
Downloads
- monadloc-0.5.tar.gz (Cabal source package)
- package description (included in the package)