Source codeContentsIndex
Examples
Synopsis
data EventSet a
emptyEventSet :: EventSet a
addToEventSet :: EventSet a -> Event a -> EventSet a
fromEventSet :: EventSet a -> Event (a, EventSet a)
isEmptyEventSet :: EventSet a -> Bool
watch :: Event a -> IO (Event a, IO ())
Documentation
data EventSet a
emptyEventSet :: EventSet a
addToEventSet :: EventSet a -> Event a -> EventSet a
fromEventSet :: EventSet a -> Event (a, EventSet a)
isEmptyEventSet :: EventSet a -> Bool
watch :: Event a -> IO (Event a, IO ())
watch is used for events like mouse motion events where if we can't find time we don't want them queued. The event returned waits until the original event next happens and returns it. A worker thread is needed to run this; the attached action should be used to stop that thread when we are no longer interested.
Produced by Haddock version 0.3