https://github.com/dbuenzli/react
Declarative events and signals for OCaml
https://github.com/dbuenzli/react
Last synced: about 1 year ago
JSON representation
Declarative events and signals for OCaml
- Host: GitHub
- URL: https://github.com/dbuenzli/react
- Owner: dbuenzli
- License: isc
- Created: 2013-02-15T10:13:14.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T20:37:28.000Z (about 2 years ago)
- Last Synced: 2024-08-05T15:06:36.796Z (over 1 year ago)
- Language: OCaml
- Homepage: http://erratique.ch/software/react
- Size: 279 KB
- Stars: 134
- Watchers: 12
- Forks: 14
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome - dbuenzli/react - Declarative events and signals for OCaml (<a name="OCaml"></a>OCaml)
README
React — Declarative events and signals for OCaml
================================================
Release %%VERSION%%
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:
# Installation
React can be installed with `opam`:
opam install react
If you don't use `opam` consult the [`opam`](opam) file for build
instructions.
# Documentation
The documentation and API reference is automatically generated by from
the source interfaces. It can be consulted [online][doc] or via `odig
doc react`.
[doc]: http://erratique.ch/software/react/doc/
# 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.