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

Description

This packages backports new features of the language to older compilers, such as let+.

Published: 09 Dec 2019

README

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))

Dependencies (2)

  1. ocaml >= "4.02.3"
  2. dune >= "2.0"

Dev Dependencies

None

Used by (11)

  1. alcotest >= "1.5.0"
  2. angstrom >= "0.15.0"
  3. colombe >= "0.2.0"
  4. dolmen_lsp
  5. irmin-test >= "2.3.0"
  6. jsonrpc < "1.6.0"
  7. lsp < "1.6.0"
  8. lwt >= "5.3.0" & < "5.6.0"
  9. mechaml >= "1.2.0"
  10. oskel >= "0.3.0"
  11. ppx_irmin < "2.3.0"

Conflicts

None

OCaml

Innovation. Community. Security.