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

Safe HaskellNone

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 TimerSource

Create a new timer

interval :: Attr Timer IntSource

Timer interval in milliseconds.

running :: Attr Timer BoolSource

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.