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

[ control, library, monads, public-domain ] [ Propose Tags ]

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

. See 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.

Versions [RSS] [faq] 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7.1
Dependencies base (>=3 && <5), haskell-src-exts, pretty, syb, template-haskell [details]
License LicenseRef-PublicDomain
Author Pepe Iborra
Category Control, Monads
Home page
Uploaded by PepeIborra at 2009-11-02T22:44:59Z
Distributions NixOS:0.7.1
Executables MonadLoc
Downloads 7974 total (40 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-31 [all 7 reports]


  • Control
    • Monad
      • Control.Monad.Loc

Manual Flags

Automatic Flags

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees