uni-events-2.2.2.0: Event handling for the uniform workbench

Safe HaskellNone
LanguageHaskell98

Events.Toggle

Description

A toggle is a switch initially True, which can only be made false (when some action is performed, say). This module implements toggles, allowing atomic switching to false of 1 toggle, or 2 toggles together. To avoid deadlock we use a supply of unique integers.

Documentation

ifToggle :: Toggle -> IO () -> IO () Source