darcs-2.18.2: a distributed, interactive, smart revision control system
Copyright2005 Tomasz Zielonka
LicenseGPL
Maintainerdarcs-devel@darcs.net
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.Util.Global

Description

This was originally Tomasz Zielonka's AtExit module, slightly generalised to include global variables. Here, we attempt to cover broad, global features, such as exit handlers. These features slightly break the Haskellian purity of darcs, in favour of programming convenience.

Documentation

whenDebugMode :: IO () -> IO () Source #

withDebugMode :: (Bool -> IO a) -> IO a Source #