Thicket thicket
ocaml
REPOS 27

W08.2025 · 17–23 FebAll

OCaml PR #13806 proposes polymorphic function parameters requiring an explicit annotation, while opam now exports OCAMLPATH in opam env output, fixing cross-switch library contamination on Linux. Odoc adds a header field to @doc-json output for page titles.

Features

  • OCaml (PR #13806, proposal): Proposes polymorphic function parameters, enabling types such as ('a. 'a -> 'a list) -> int list. Requires an explicit annotation. (link)
  • OCaml (PR #13820, proposal): Proposes the -print-variance compiler option and +- syntax for bivariant type parameters. Coauthored by @t6s and @garrigue. (link)
  • odoc (merged): Adds a header field to @doc-json output, providing the page title without requiring consumers to derive it from breadcrumbs. (#1314)
  • odoc LaTeX backend (merged): Supports png, pdf, and jpeg image assets in generated LaTeX documents. No width attribute is exposed on the media tag. (#1297)
  • ocaml-lsp Nix (merged): Adds OCaml 5.3 to the supported compiler set for Nix-based builds. (#1473, #1477)

Fixes

  • odoc-driver (merged): Checks whether command-line packages are installed via opam list and reports missing ones instead of crashing. Closes #1296. (#1311)
  • odoc (merged): Propagates the suppress_warnings flag to all doc strings, not only the first, so suppression applies uniformly. (#1304)
  • Merlin (issue #1900): Merlin and Dune apply -open flags in different orders, producing spurious errors in files Dune compiles cleanly. Adding explicit -open flags to the Dune file works around the issue. (link)
  • opam-repository (issue #27495): opam env did not export OCAMLPATH, causing cross-switch library contamination on Linux. Issue closed; the variable is now included in environment output. (link)

Compatibility and Releases

  • ocaml-lsp Nix (merged): Drops OCaml 5.1 from the supported compiler set; Nix builds no longer target 5.1. (#1484)
  • wasm_of_ocaml 6.0.1: Effect.perform raises RuntimeError: illegal cast unless the runtime uses node --experimental-wasm-jspi or the build uses --effects=cps. (#1839)
  • opam (PR #6393, proposal): Proposes section-based syntax for repos-config, replacing the list format. Requires a hard upgrade of the opam root; no soft-upgrade path. (link)