Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W42.2026 · 12–18 OctTools

Features

  • js_of_ocaml — Identical literals are shared at bytecode parse time. JS output shrinks 51 %, Wasm 68 % on Fiat-Crypto. Breaking: identical literals may now be physically equal. (#2547, merged)

  • dune — New (job_slots …) rule declares scheduler-slot consumption per build, optionally computed by a program. Value is exported as an environment variable for polyglot sub-builds. (#16475, merged)

  • dune — Dune 3.26 adds melange.flags for library and env stanzas, deprecating melange.compile_flags. Requires (lang dune 3.26). (#16573, merged)

  • ocaml-lsp — Interactive completions now include snippet edit slots for construct, destruct, and multi-argument call items. ocp-indent is supported as an alternative formatter via textDocument/onTypeFormatting. (#2212, #2148)

  • merlin — v5.9: destruct handles let-binding patterns; enclosing returns improved ranges; new PPX_DEPS config field advertises PPX dependencies. v5.9

  • opam (proposal, open) — Confirmation will be requested before every action by default, not only for unnamed packages. Scripts omitting -y / OPAMYES=1 will now prompt. (#7215)

Fixes

  • js_of_ocaml — caml_wrap_exception is no longer imported under WASI. Fixes a linking failure that appeared when wasm-opt was skipped at --opt 1. (#2543, merged)

  • js_of_ocaml — JS and Wasm runtimes rewrite CONIN$/CONOUT$/CON to \\.\NAME before fs.openSync on Windows. Fixes ENOENT when compiled programs open the console. (#2525, merged)

  • dune — A (select) in one stanza no longer triggers "excluded module doesn't exist" in a sibling stanza's (modules :standard \ …). Fixes a 3.22 regression. (#16639, merged)

  • dune — dune build proceeds without an RPC server when socket creation fails (e.g. sandbox restrictions). --passive-watch-mode still requires RPC. (#16597, merged)

Compatibility and Releases

  • ocaml-lsp 1.28.0 released 2026-10-12. Includes snippet completions, ocp-indent support, semantic-highlighting refinements, and a FreeBSD statfs header fix. Release

  • merlin v5.9 released 2026-10-12. Binary now reads C library flags from ocamlc -config, fixing the Haiku build. v5.9

  • opam — The 2.6.1 Windows binary is flagged by Windows Defender (false positive). A follow-up issue explores code-signing to build SmartScreen reputation. (#7197, #7217, open)