Thicket thicket
ocaml
REPOS 27

October 2025

Monthly story not yet available.

W44.2025 · 27 Oct – 2 NovAll

OCaml 5.5 removes the undocumented let rec (_ as x) = ... pattern, a breaking change noted in the changelog. Separately, the opam-repository restores installability of OCaml 5.4.0 by removing a stale avoid-version flag, and OCaml trunk merges GADT existentials in as-patterns within or-patterns.

Features

OCaml trunk: merged support for GADT existentials in as-patterns within or-patterns, e.g. (Value_int _ | Value_snd (Ok _)) as y. Previously a type error. #14327

Dune: PR #12561 adds instantiation of parameterized libraries via (my_lib arg1 arg2 :as new_name) in dependencies. Requires OxCaml; not yet available in upstream OCaml.

Dune: PR #12653 introduces automatic lock-directory generation when (pkg enabled) is set and no lock source is present, removing the need for explicit dune pkg lock.

Compatibility and Releases

opam installer: PR #6764 checks for AppArmor abi/4.0 before installing the profile, fixing parser failures on Debian bookworm where only abi/3.0 is present.

opam-repository: Binaryen 0.27.0 merged with breaking changes: binaryen now requires jsoo >= 6.0 and node >= 22. #28797

js_of_ocaml: merged fix corrects the exit code of jsoo_minify and wasmoo_link_wasm so build scripts receive correct failure signals. #2121

Fixes

OCaml 5.5: merged removal of undocumented let rec (_ as x) = ... pattern support, a side-effect of an earlier desugaring. Marked as breaking in the changelog. #14322

OCaml trunk: merged fix for nontermination of ocamlopt -short-paths on recursive modules with cyclic type abbreviations. #14037

Dune: PR #12621 fixes incorrect .merlin file selection when multiple executables share a directory, resolving wrong obj_dirs passed to the editor.

opam 2.5.0-alpha1: PR #6765 corrects vendored archive placement in the -full release tarball; archives were at the top level instead of src_ext/archives. Backport #6766 targets the 2.5 branch.

opam-repository: the stale avoid-version flag on ocaml.5.4.0 was removed, restoring installability of the released compiler. Resolves issue #28786. #28787

OxCaml: merged fix switches native Dynlink from name_as_string to full_path_as_string, so parameterised library instances differing only by functor arguments are no longer conflated. #4935