unison-cli-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Compat

Synopsis

Documentation

defaultInterruptHandler :: IO (IO ()) Source #

Constructs a default interrupt handler which builds an interrupt handler which throws a UserInterrupt exception to the thread in which the setup was initially called.

withInterruptHandler :: IO () -> IO a -> IO a Source #

Replaces any existing interrupt handlers with the provided IO action while the provided action is running, restoring any existing handlers afterwards.