darcs-2.16.4: a distributed, interactive, smart revision control system
Safe HaskellNone
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.