Module React

Declarative events and signals.

React is a module for functional reactive programming (frp). It provides support to program with time varying values : declarative events and signals. React doesn't define any primitive event or signal, this lets the client choose the concrete timeline.

Consult the semantics, the basics and examples. Open the module to use it, this defines only two types and modules in your scope.

Release v1.2.1 - %%MAINTAINER%%

Interface

type 'a event

The type for events of type 'a.

type 'a signal

The type for signals of type 'a.

type step

The type for update steps.

module E : sig ... end

Event combinators.

module S : sig ... end

Signal combinators.

module Step : sig ... end

Update steps.

Semantics

Events

Signals

Equality

Continuity

Basics

Primitive events and signals

Update steps

Simultaneous events

The update step and thread safety

Side effects

Lifting

Mutual and self reference

Strong stops

Examples

Clock