Safe Haskell | None |
---|
The signal story. Posix signals are external events that invoke signal handlers in Haskell. The signal handlers in turn throw dynamic exceptions. Our instance of MonadError for LB maps the dynamic exceptions to SignalCaughts, which can then be caught by a normal catchError
- type Signal = CInt
- newtype SignalException = SignalException Signal
- ircSignalMessage :: Signal -> String
- withIrcSignalCatch :: MonadBaseControl IO m => m a -> m a
Documentation
newtype SignalException Source
withIrcSignalCatch :: MonadBaseControl IO m => m a -> m aSource
Register signal handlers to catch external signals