threepenny-gui-0.6.0.3: GUI framework that uses the web browser as a display.

Safe HaskellNone
LanguageHaskell98

Graphics.UI.Threepenny.Timer

Contents

Synopsis

Synopsis

Implementation of a simple timer which runs on the server-side.

NOTE: The timer may be rather wobbly unless you compile with the -threaded option.

Documentation

data Timer Source

Instances

timer :: UI Timer Source

Create a new timer

interval :: Attr Timer Int Source

Timer interval in milliseconds.

running :: Attr Timer Bool Source

Whether the timer is running or not.

tick :: Timer -> Event () Source

Timer event.

start :: Timer -> UI () Source

Start the timer.

stop :: Timer -> UI () Source

Stop the timer.