Thicket thicket
ocaml
REPOS 27

W15.2026 · 6–12 AprAll

OCaml trunk merges external foo = Bar.baz syntax to alias existing primitives, and Dune 3.22.2 reverts the --diff-command behaviour change from 3.22.0. OCaml LSP 1.26.0 adds ocamllsp/refactorExtract and textDocument/rangeFormatting support.

Features

  • OCaml trunk: Merged external foo = Bar.baz syntax to alias existing primitives, copying C names and representations. The typed form unifies the declared type with the source. #13377

  • Dune (lang 3.23): Multiple (dirs ..) stanzas in one dune file now take the union of specified directories. Fixes #6249. (#13734)

  • Dune: New dune rules --deps flag prints only the dependencies of a given rule, aiding incremental-build debugging. Merged 2026-04-07. (#14071)

  • Merlin v5.7.0-504: Adds refactor-extract-region command (experimental) and -end-position parameter to enclosing. Released 2026-04-09. Release notes

  • OCaml LSP 1.26.0: Adds ocamllsp/refactorExtract, destruct, locate_types custom requests and textDocument/rangeFormatting support. Configurable via $OCAMLLSP_PROJECT_BUILD_SYSTEM and $OCAMLLSP_PROJECT_ROOT. Release

  • js_of_ocaml: Merged Dynlink and toplevel support for the Wasm target. (#2187)

Fixes

  • OCaml trunk (typechecker): Merged "keep expansion" change tracking type-abbreviation expansions as first-class nodes. Fixes non-termination, incorrect principality, and missed ambivalence across five bugs. #11648

  • Dune: Entry modules are now deduplicated before writing root.ml-gen, fixing "Multiple definition of the module name" errors with findlib sub-packages. Merged 2026-04-11. (#14135)

  • opam: The release signing key expired 2025-12-16. The updated key is live at opam.ocaml.org/opam-dev-pubkey.pgp. #6877

  • OxCaml (Flambda2): Merged fix for missing CSE with the n-way join, resolving duplicate %is_int primitives. (#5751)

Compatibility and Releases

  • Dune 3.22.2: Patch release reverting the --diff-command behaviour change from 3.22.0; non-existent files are again passed to the command. Released 2026-04-10. (#14098)

  • opam-repository (atd 4.1.0): Requires OCaml ≥ 4.14 (previously 4.08). Sum types now encode as single-key JSON objects instead of arrays. (#29709)