monadloc: A class for monads which can keep a monadic call trace
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.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
syb-in-base | Disabled | |
mtl | Enabled | |
transformers | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- monadloc-0.5.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7.1 |
---|---|
Dependencies | base (>=3 && <5), haskell-src-exts (>=1.3.0), mtl, pretty, syb, template-haskell, transformers [details] |
License | LicenseRef-PublicDomain |
Author | Pepe Iborra |
Maintainer | pepeiborra@gmail.com |
Category | Control, Monads |
Home page | http://github.com/pepeiborra/monadloc |
Source repo | head: git clone git://github.com/pepeiborra/monadloc.git |
Uploaded | by PepeIborra at 2009-11-09T22:09:35Z |
Distributions | |
Reverse Dependencies | 6 direct, 1109 indirect [details] |
Executables | MonadLoc |
Downloads | 8668 total (24 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |