threepenny-gui-0.2.0.1: Small GUI framework that uses the web browser as a display.
Graphics.UI.Threepenny.Timer
Contents
Synopsis
Implementation of a simple timer which runs on the server-side.
data Timer Source
timer :: IO 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
start :: Timer -> IO ()Source
Start the timer.
stop :: Timer -> IO ()Source
Stop the timer.