OCaml changes the parse grouping of T with module type S = X -> X to T with module type S = (X -> X), breaking code relying on the old form. Dune now always marks generated files read-only, removing the pre-2.4 language-version opt-out, and opam 2.6.0~rc1 was released on 2026-09-08.
Features
-
OCaml parser emits
Pexp_hole/Pmod_holefor_in expression and module positions; PPX rewriters and Merlin can now inspect these. #15051 (merged) -
Odoc and odocl files are now compressed when the compiler supports it, reducing sizes by roughly 4–5×. #1486 (merged)
-
OCaml-LSP: functions with ≥2 labelled or optional arguments offer a
(call)completion inserting a snippet with per-argument_placeholders. #2199 (merged) -
Eio:
Eio.Process.environmentandEio.Process.getenv_optexpose the process environment as a snapshot and single-variable lookup. #923 (merged)
Fixes
-
ocamloptno longer segfaults on partial GADT matches;Translcoreno longer uses local GADT equations from refutable patterns for kind inference. #15035 (merged) -
Weak.get_copyno longer duplicates continuations, preventing a segfault on double-resume of a shallow-copied fiber. #14988 (merged) -
js_of_ocaml: the printer uses a non-breaking space after
staticin class elements, fixingInt64.of_stringcrashes on Safari 17.x. #2421 (merged)
Compatibility and Releases
-
OCaml:
T with module type S = X -> Xnow parses asT with module type S = (X -> X). Code relying on the old grouping fails to compile. #14978 (breaking, merged) -
Dune: generated files are always read-only, removing the pre-2.4 language-version opt-out. Executable bits are preserved. #16388 (breaking, merged)
-
Dune:
Dune_rpc_lwt.V1.Action_plugin.runreturnsunit Lwt.tinstead of driving the event loop; callers must useLwt_main.run. #16404 (breaking, merged) -
opam 2.6.0~rc1 released 2026-09-08; binaries signed by the opam dev team. Release / Blog post
-
opam-repository: tyxml 5.0.0 aligns HTML/SVG output with WHATWG and SVG 2;
hidden/contenteditabletake enumerated args, URL attributes useXml.uri. Requires OCaml ≥ 4.08, dune ≥ 3.18. #30641 (merged)