Signal is a lightweight FRP-like Monad heavily inspired by the Elm Signal implementation. It was ported from an original PureScript implementation created by Bodil Stokke.
This class provides tools to manipulate values that a Signal receives, allowing you to apply transforms to each value sent to the Signal. To get started, however, you'll want to use the Channel or the (upcoming) Loop classes to set up a new signal for usage.
The Type of value the Signal yields
Takes a signal and delays its yielded values by a given number of milliseconds.
Create a signal which only yields values which aren't equal to the previous value of the input signal.
Takes a signal and filters out yielded values for which the provided predicate function returns false.
Turn a signal of collections of items into a signal of each item inside each collection, in order.
Creates a past dependent signal. The function argument takes the value of the input signal, and the previous value of the output signal, to produce the new value of the output signal.
Apply a function to the Signal's value.
Runs side effects over the values of a Signal.
Takes a signal and a time value, and creates a signal which yields True when the input signal yields, then goes back to False after the given number of milliseconds have elapsed, unless the input signal yields again in the interim.
Create a signal with a constant value.
Given a Signal of effects with no return value, run each effect as it comes in.
Generated using TypeDoc