Safe Haskell | Safe-Inferred |
---|
Synopsis
Event-driven programming in the imperative style.
Documentation
type Handler a = a -> IO ()Source
An event handler is a function that takes an event value and performs some computation.
An event is a facility for registering event handlers. These will be called whenever the event occurs.
When registering an event handler, you will also be given an action that unregisters this handler again.
do unregisterMyHandler <- register event myHandler
filterJust :: Event (Maybe a) -> Event aSource
Keep only those event values that are of the form Just
.