React is an OCaml 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, it lets the client chooses the concrete timeline.
React is made of a single, independent, module and distributed under
the ISC license.
React can be installed with
opam install react
If you don't use
opam consult the
opam file for build
The documentation and API reference is automatically generated by from
the source interfaces. It can be consulted online or via
odig doc react.
If you installed React with
opam sample programs are located in
opam var react:doc.
In the distribution sample programs are located in the
directory of the distribution. They can be built with:
ocamlbuild -use-ocamlfind test/tests.otarget
The resulting binaries are in
test.nativetests the library, nothing should fail.
clock.nativeis a command line program using ANSI escape sequences
and the Unix module to print the current local time.
breakout.nativeis a command line program using ANSI escape sequences
and the Unix module to implement a simple breakout game.