packageocaml-syntax-shims
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 oldercompilers, 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 aslet+
while still keeping compatibility with older OCaml compiler.
To use it, simply depend on this package and add the following field to yourlibrary
orexecutable
stanzas in yourdune
files:(preprocess future_syntax)
. For instance:
(library (name mylib) (preprocess future_syntax))
sectionYPositions = computeSectionYPositions($el), 10)" x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)" >
On This Page