12 Interrupts


module Interrupt ( setUserInterrupt ) where

setUserInterrupt :: Maybe (IO ()) -> IO (Maybe (IO ()))

Passing a Nothing to setUserInterrupt disables user interrupt handling. If this operation fails, it returns Nothing.

(I believe the semantics is: when a user interrupt happens, the current computation is abandoned and the current interrupt handler is invoked in its place. The program terminates when the interrupt handler completes. We need to clarify this.)

The Haskell 1.3 Library Report