ContentsIndex
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_actions :: MVar (Maybe [IO ()])
atexit :: IO () -> IO ()
with_atexit :: IO a -> IO a
_debugMode :: IORef Bool
setDebugMode :: IO ()
whenDebugMode :: IO () -> IO ()
withDebugMode :: (Bool -> IO a) -> IO a
debugMessage :: String -> IO ()
debugFail :: String -> IO a
putTiming :: IO ()
_timingsMode :: IORef Bool
setTimingsMode :: IO ()
timingsMode :: Bool
_verboseMode :: IORef Bool
setVerboseMode :: IO ()
verboseMode :: Bool
_sshControlMasterDisabled :: IORef Bool
setSshControlMasterDisabled :: IO ()
sshControlMasterDisabled :: Bool
darcsdir :: String
Documentation
atexit_actions :: MVar (Maybe [IO ()])
atexit :: IO () -> IO ()
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
_debugMode :: IORef Bool
setDebugMode :: IO ()
whenDebugMode :: IO () -> IO ()
withDebugMode :: (Bool -> IO a) -> IO a
debugMessage :: String -> IO ()
debugFail :: String -> IO a
putTiming :: IO ()
_timingsMode :: IORef Bool
setTimingsMode :: IO ()
timingsMode :: Bool
_verboseMode :: IORef Bool
setVerboseMode :: IO ()
verboseMode :: Bool
_sshControlMasterDisabled :: IORef Bool
setSshControlMasterDisabled :: IO ()
sshControlMasterDisabled :: Bool
darcsdir :: String
Produced by Haddock version 2.4.2