| darcs | Source code | Contents | Index

Darcs.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.
Synopsis

atexit :: IO () -> IO ()
with_atexit :: IO a -> IO a
sshControlMasterDisabled :: Bool
setSshControlMasterDisabled :: IO ()
verboseMode :: Bool
setVerboseMode :: IO ()
timingsMode :: Bool
setTimingsMode :: IO ()
whenDebugMode :: IO () -> IO ()
withDebugMode :: (Bool -> IO a) -> IO a
setDebugMode :: IO ()
debugMessage :: String -> IO ()
debugFail :: String -> IO a
putTiming :: IO ()
addCRCWarning :: FilePath -> IO ()
getCRCWarnings :: IO [FilePath]
resetCRCWarnings :: IO ()
darcsdir :: String

Documentation

atexit :: IO () -> IO () | Source

Registers an IO action to run just before darcs exits. Useful for removing temporary files and directories, for example.

with_atexit :: IO a -> IO a | Source

sshControlMasterDisabled :: Bool | Source

setSshControlMasterDisabled :: IO () | Source

verboseMode :: Bool | Source

setVerboseMode :: IO () | Source

timingsMode :: Bool | Source

setTimingsMode :: IO () | Source

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

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

setDebugMode :: IO () | Source

debugMessage :: String -> IO () | Source

debugFail :: String -> IO a | Source

putTiming :: IO () | Source

addCRCWarning :: FilePath -> IO () | Source

getCRCWarnings :: IO [FilePath] | Source

resetCRCWarnings :: IO () | Source

darcsdir :: String | Source

Produced by Haddock version 2.4.2