eventloop-0.8.2.8: A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together.

Safe HaskellNone
LanguageHaskell2010

Eventloop.Module.Timer

Documentation

type TimerId = [Char] Source #

type TickBuffer = BlockingConcurrentQueue TimerIn Source #

type StartedTimer = (TimerId, TimerIO) Source #

type TimerStartFunction = TimerIO -> IO () -> Delay -> IO Bool Source #

data TimerIn Source #

Constructors

Tick TimerId 
Instances
Eq TimerIn Source # 
Instance details

Defined in Eventloop.Module.Timer.Types

Methods

(==) :: TimerIn -> TimerIn -> Bool #

(/=) :: TimerIn -> TimerIn -> Bool #

Show TimerIn Source # 
Instance details

Defined in Eventloop.Module.Timer.Types

data TimerOut Source #

Instances
Eq TimerOut Source # 
Instance details

Defined in Eventloop.Module.Timer.Types

Show TimerOut Source # 
Instance details

Defined in Eventloop.Module.Timer.Types

Generic TimerOut Source # 
Instance details

Defined in Eventloop.Module.Timer.Types

Associated Types

type Rep TimerOut :: Type -> Type #

Methods

from :: TimerOut -> Rep TimerOut x #

to :: Rep TimerOut x -> TimerOut #

NFData TimerOut Source # 
Instance details

Defined in Eventloop.Module.Timer.Types

Methods

rnf :: TimerOut -> () #

type Rep TimerOut Source # 
Instance details

Defined in Eventloop.Module.Timer.Types