package ocaml-syntax-shims

  1. Overview
  2. Docs
Backport new syntax to older OCaml versions

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-syntax-shims-1.0.0.tbz
sha256=89b2e193e90a0c168b6ec5ddf6fef09033681bdcb64e11913c97440a2722e8c8
sha512=75c4c6b0bfa1267a8a49a82ba494d08cf0823fc8350863d6d3d4971528cb09e5a2a29e2981d04c75e76ad0f49360b05a432c9efeff9a4fbc1ec6b28960399852

README.md.html

ocaml-syntax-shims

This package provides a small utility that backports some of the newer OCaml syntax to older OCaml compilers. This allows adopting new features such as let+ while still keeping compatibility with older OCaml compiler.

To use it, simply depend on this package and add the following field to your library or executable stanzas in your dune files: (preprocess future_syntax). For instance:

(library
 (name mylib)
 (preprocess future_syntax))
OCaml

Innovation. Community. Security.