package rresult

  1. Overview
  2. Docs
Result value combinators for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

rresult-0.1.0.tbz
md5=df97d537e07099bd90ee5a7c74652956

README.md.html

Rresult — Result value combinators for OCaml

Release 0.1.0

Rresult is an OCaml module for handling computation results and errors in an explicit and declarative manner, without resorting to exceptions. It defines a result type and combinators to operate on these values.

Rresult has no dependency and is distributed under the BSD3 license.

Home page: http://erratique.ch/software/rresult
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>

Installation

Rresult can be installed with opam:

opam install rresult

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

Documentation

The documentation and API reference is automatically generated by ocamldoc from the interfaces. It can be consulted online and there is a generated version in the doc directory of the distribution.

Sample programs

If you installed Rresult with opam sample programs are located in the directory opam config var rresult: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.

OCaml

Innovation. Community. Security.