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.bazsyntax 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 onedunefile now take the union of specified directories. Fixes #6249. (#13734) -
Dune: New
dune rules --depsflag 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-regioncommand (experimental) and-end-positionparameter toenclosing. Released 2026-04-09. Release notes -
OCaml LSP 1.26.0: Adds
ocamllsp/refactorExtract,destruct,locate_typescustom requests andtextDocument/rangeFormattingsupport. Configurable via$OCAMLLSP_PROJECT_BUILD_SYSTEMand$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_intprimitives. (#5751)
Compatibility and Releases
-
Dune 3.22.2: Patch release reverting the
--diff-commandbehaviour 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)