package react

  1. Overview
  2. Docs
Declarative events and signals for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

react-1.2.2.tbz
sha512=18cdd544d484222ba02db6bd9351571516532e7a1c107b59bbe39193837298f5c745eab6754f8bc6ff125b387be7018c6d6e6ac99f91925a5e4f53af688522b1

README.md.html

React — Declarative events and signals for OCaml

Release v1.2.2

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.

Homepage: http://erratique.ch/software/react

Installation

React can be installed with opam:

opam install react

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation and API reference is automatically generated by from the source interfaces. It can be consulted online or via odig doc react.

Sample programs

If you installed React with opam sample programs are located in the directory opam var react:doc.

In the distribution sample programs are located in the test directory of the distribution. They can be built with:

ocamlbuild -use-ocamlfind test/tests.otarget

The resulting binaries are in _build/test.

  • test.native tests the library, nothing should fail.

  • clock.native is a command line program using ANSI escape sequences and the Unix module to print the current local time.

  • breakout.native is a command line program using ANSI escape sequences and the Unix module to implement a simple breakout game.

OCaml

Innovation. Community. Security.