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

Safe HaskellSafe-Inferred

Darcs.Util.SignalHandler

Synopsis

Documentation

catchInterrupt :: IO a -> IO a -> IO a

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

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.