| ||||||||||||||

| ||||||||||||||

| ||||||||||||||

Description | ||||||||||||||

A library for programming with functional reactive behaviors. | ||||||||||||||

Synopsis | ||||||||||||||

Events | ||||||||||||||

| ||||||||||||||

The type of finite time values. | ||||||||||||||

| ||||||||||||||

Improving doubles, as used for time values in Event, Reactive,
and ReactiveB.
| ||||||||||||||

| ||||||||||||||

| ||||||||||||||

| ||||||||||||||

Events, specialized to improving doubles for time | ||||||||||||||

| ||||||||||||||

Accumulating event, starting from an initial value and a
update-function event. See also accumR.
| ||||||||||||||

| ||||||||||||||

Access occurrence times in an event. See withTimeGE for more
general notions of time.
| ||||||||||||||

| ||||||||||||||

Access occurrence times in an event. Discard the rest. See also
withTimeE.
| ||||||||||||||

| ||||||||||||||

Generate a pair-valued event, given a pair of initial values and a
pair of events. See also pair on Reactive.
| ||||||||||||||

| ||||||||||||||

Like scanl for events.
| ||||||||||||||

| ||||||||||||||

Accumulate values from a monoid-typed event. Specialization of
scanlE, using mappend and mempty.
| ||||||||||||||

| ||||||||||||||

State machine, given initial value and transition function. Carries
along event data. See also stateE_. TODO: better name.
| ||||||||||||||

| ||||||||||||||

State machine, given initial value and transition function. See also
stateE.
| ||||||||||||||

| ||||||||||||||

Count occurrences of an event, remembering the occurrence values.
See also countE_.
| ||||||||||||||

| ||||||||||||||

Count occurrences of an event, forgetting the occurrence values. See
also countE.
| ||||||||||||||

| ||||||||||||||

Difference of successive event occurrences. See withPrevE for a
trick to supply an initial previous value.
| ||||||||||||||

| ||||||||||||||

Pair each event value with the previous one. The second result is
the old one. Nothing will come out for the first occurrence of e,
but if you have an initial value a, you can do withPrevE (pure a
.
mappend e) | ||||||||||||||

| ||||||||||||||

Same as withPrevE, but allow a function to combine the values.
Provided for convenience.
| ||||||||||||||

| ||||||||||||||

Filter an event according to whether a reactive boolean is true. | ||||||||||||||

| ||||||||||||||

Combine two events into one. | ||||||||||||||

More esoteric | ||||||||||||||

| ||||||||||||||

Convert a temporally monotonic list of timed values to an event. See also
the generalization listEG
| ||||||||||||||

| ||||||||||||||

Event occuring at given times. See also atTime and atTimeG.
| ||||||||||||||

| ||||||||||||||

Single-occurrence event at given time. See atTimes and atTimeG.
| ||||||||||||||

| ||||||||||||||

Just the first occurrence of an event. | ||||||||||||||

| ||||||||||||||

Decompose an event into its first occurrence value and a remainder
event. See also firstE and restE.
| ||||||||||||||

| ||||||||||||||

Extract the first occurrence value of an event. See also
firstRestE and restE.
| ||||||||||||||

| ||||||||||||||

Extract the remainder an event, after its first occurrence. See also
firstRestE and firstE.
| ||||||||||||||

| ||||||||||||||

Tack remainders a second event onto values of a first event. Occurs when the first event occurs. | ||||||||||||||

| ||||||||||||||

Access the remainder with each event occurrence. | ||||||||||||||

| ||||||||||||||

Truncate first event at first occurrence of second event. | ||||||||||||||

| ||||||||||||||

Partition an event into segments. | ||||||||||||||

| ||||||||||||||

Switch from one event to another, as they occur. (Doesn't merge, as
join does.)
| ||||||||||||||

Useful with events. | ||||||||||||||

| ||||||||||||||

Pass through Just occurrences.
| ||||||||||||||

| ||||||||||||||

Pass through values satisfying p.
| ||||||||||||||

Behaviors | ||||||||||||||

| ||||||||||||||

| ||||||||||||||

| ||||||||||||||

Time-specialized behaviors. Note: The signatures of all of the behavior functions can be generalized. Is the interface generality worth the complexity? | ||||||||||||||

| ||||||||||||||

The identity generalized behavior. Has value t at time t.
| ||||||||||||||

| ||||||||||||||

Discretely changing behavior, based on an initial value and a new-value event. | ||||||||||||||

| ||||||||||||||

Switch between behaviors. | ||||||||||||||

| ||||||||||||||

Snapshots a behavior whenever an event occurs and combines the values using the combining function passed. | ||||||||||||||

| ||||||||||||||

Snapshot a behavior whenever an event occurs. See also snapshotWith.
| ||||||||||||||

| ||||||||||||||

Like snapshot but discarding event data (often a is '()').
| ||||||||||||||

| ||||||||||||||

Behavior from an initial value and an updater event. See also accumE. | ||||||||||||||

| ||||||||||||||

Like scanl for behaviors. See also scanlE.
| ||||||||||||||

| ||||||||||||||

Accumulate values from a monoid-valued event. Specialization of
scanlB, using mappend and mempty. See also monoidE.
| ||||||||||||||

| ||||||||||||||

Start out blank (Nothing), latching onto each new a, and blanking
on each b. If you just want to latch and not blank, then use
mempty for the second event.
| ||||||||||||||

| ||||||||||||||

Flip-flopping behavior. Turns true whenever first event occurs and false whenever the second event occurs. | ||||||||||||||

| ||||||||||||||

Count occurrences of an event. See also countE. | ||||||||||||||

| ||||||||||||||

Like sum for behaviors.
| ||||||||||||||

| ||||||||||||||

Euler integral. | ||||||||||||||

Produced by Haddock version 2.3.0 |