package ocaml-syntax-shims

All checked builds pass
  1. Overview
  2. Docs
Backport new syntax to older OCaml versions

Install

dune-project
 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+.

Added to opam-repository:

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

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

Build status

Results of building ocaml-syntax-shims with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure