Module
FRP.Event
- Package
- purescript-behaviors
- Repository
- paf31/purescript-behaviors
#Event Source
data Event a
An Event
represents a collection of discrete occurrences with associated
times. Conceptually, an Event
is a (possibly-infinite) list of values-and-times:
type Event a = List { value :: a, time :: Time }
Events are created from real events like timers or mouse clicks, and then combined using the various functions and instances provided in this module.
Events are consumed by providing a callback using the subscribe
function.