lambdabot-4.3.0.1: Lambdabot is a development tool and advanced IRC bot

Safe HaskellNone

Lambdabot.Util.Signals

Description

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

Synopsis

Documentation

type Signal = CInt

withIrcSignalCatch :: MonadBaseControl IO m => m a -> m aSource

Register signal handlers to catch external signals