reactive-0.8.6: Simple foundation for functional reactive programmingSource codeContentsIndex
Tools for making Reactive adapters for imperative ("legacy") libraries.
type Sink a = a -> Action
type Action = IO ()
makeClock :: IO (Clock TimeT)
cGetTime :: Clock t -> IO t
makeEvent :: Clock TimeT -> MkFed (Event a) a
mkUpdater :: IO TimeT -> Behavior Action -> IO Action
type Sink a = a -> ActionSource
Value consumer
type Action = IO ()Source
Convenient alias for dropping parentheses.
makeClock :: IO (Clock TimeT)Source
Make a clock, given a way to delay actions. For instance, the delay could be sleepThen in thread-safe situations, but could also involve a GUI toolkit wake-up event.
cGetTime :: Clock t -> IO tSource
makeEvent :: Clock TimeT -> MkFed (Event a) aSource
Make a new event and a sink that writes to it. Uses the given clock to serialize and time-stamp.
mkUpdater :: IO TimeT -> Behavior Action -> IO ActionSource
Make an action to be executed regularly, given a time-source and a action-behavior. The generated action is optimized to do almost no work during known-constant phases of the given behavior.
Produced by Haddock version 2.3.0