darcs-2.12.5: a distributed, interactive, smart revision control system

Safe HaskellSafe
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.