darcs-2.18.1: a distributed, interactive, smart revision control system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.Util.SignalHandler

Synopsis

Documentation

catchInterrupt :: IO a -> IO a -> IO a Source #

catchNonSignal :: IO a -> (SomeException -> IO a) -> IO a Source #

A drop-in replacement for catch, which allows us to catch anything but a signal. Useful for situations where we don't want to inhibit ctrl-C.