Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
In the Rhine philosophy, _event sources are clocks_. Often, we want to extract certain subevents from event sources, e.g. single out only left mouse button clicks from all input device events. This module provides a general purpose selection clock that ticks only on certain subevents.
Documentation
data SelectClock cl a Source #
A clock that selects certain subevents of type a
,
from the tag of a main clock.
If two SelectClock
s would tick on the same type of subevents,
but should not have the same type,
one should newtype
the subevent.