haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Event

Description

Event management

Synopsis

Documentation

newEventReader :: forall a. Storable a => Handle -> Sys (TChan a) Source #

Create a new thread reading events and putting them in a TChan

onEvent :: TChan e -> (e -> Sys ()) -> Sys () Source #

Read events in the given channel forever

onEventWithData :: a -> TChan e -> (a -> e -> Sys a) -> Sys () Source #

Read events in the given channel forever, pass a user-defined data