Thicket thicket
ocaml
REPOS 27

W37.2026 · 7–13 SepAll

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_hole for _ 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.environment and Eio.Process.getenv_opt expose the process environment as a snapshot and single-variable lookup. #923 (merged)

Fixes

  • ocamlopt no longer segfaults on partial GADT matches; Translcore no longer uses local GADT equations from refutable patterns for kind inference. #15035 (merged)

  • Weak.get_copy no 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 static in class elements, fixing Int64.of_string crashes on Safari 17.x. #2421 (merged)

Compatibility and Releases

  • OCaml: T with module type S = X -> X now parses as T 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.run returns unit Lwt.t instead of driving the event loop; callers must use Lwt_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/contenteditable take enumerated args, URL attributes use Xml.uri. Requires OCaml ≥ 4.08, dune ≥ 3.18. #30641 (merged)