Thicket thicket
ocaml
REPOS 9

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

W37.2026 · 7–13 Sepocaml/odoc

Features

  • odoc/odocl file compression (#1486): When the compiler supports it, odoc and odocl files are now compressed, reducing file sizes by roughly 4–5×. Merged 2026-09-11 by @jonludlam.

  • include functor display for OxCaml (#1452): Generated docs now show that items were included via a functor. Merged 2026-09-11 by @Leonidas-from-XIV.

  • Canonical chain search fix (#1483): Resolves broken cross-references when a wrapper module omits some library modules, enabling @canonical tags in those cases. Merged 2026-09-11 by @jonludlam.

Compatibility and Releases

  • Removed id wrapper (#1479): Eliminates an unnecessary identifier indirection, reducing overall disk usage by ~30% with no measurable speed change. Merged 2026-09-07 by @jonludlam.

  • Merged word runs in internal AST (#1488): Consecutive Word/Space comment tokens are stored as a single Word string. The odoc-parser AST is unchanged; ocamlformat is unaffected. Merged 2026-09-11 by @jonludlam.

Fixes

  • OCaml 5.5 optional-argument rendering (#1489): OCaml 5.5 wraps optional arguments in a TPoly constructor that odoc previously rendered as ???. The fix unwraps them. Merged 2026-09-07 by @jonludlam.

  • Extended open support (#1482): Two related fixes for extended-open handling in generated documentation. Merged 2026-09-08 by @jonludlam.

  • Memoized docstring parsing (#1480): Repeated doc-comment texts (common with ppx_template) are parsed once and shared. On OxCaml code: −13% user CPU, −18% .odoc / −23% .odocl file size. Merged 2026-09-11 by @jonludlam.