Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

November 2026Core

A proposal to turn non-exhaustive pattern matches into hard compile errors in ocamlc and ocamlopt is under active discussion, with the toplevel keeping the current warning behaviour. If adopted, any existing code with partial matches would need updating before the next release. In the same area, a compiler crash that fired on total matches containing redundant or-pattern cases with when guards is now fixed; the compiler emits a normal error message instead of aborting. (Source) (Source)

Version 4.14.5 shipped on 6 November carrying six security fixes across Marshal, Str, Unix.map_file, demarshaling, Windows command quoting, and ephemeron marking, plus a pattern-compilation fix and a macOS compatibility patch. Users still on the 4.14 branch should upgrade. (Source)

On the feature side, a proposal would extend the unboxed attribute to variant types with multiple constructors, letting developers request a compact representation for their own variant types. A separate fix adds a fast path for variance checking on constrained parameters, cutting a previously 760-second type-checking case to under four seconds. (Source) (Source)

W47.2026 · 16–22 Nov

Repository summaries

ocaml/RFCs

Permalink

Features

  • OCaml RFCs: the structured diagnostics RFC was merged on 19 Nov, formalising a versioning and backward-compatibility policy for machine-readable compiler output (errors, warnings, debug dumps, -config, toplevel) in S-expression or JSON. The compiler-side implementation was already merged separately; this RFC pins the update rules tools can rely on.

  • Versioning policy: minor diagnostic versions may only refine schemas into subtypes (add record fields, expand constructor arguments); major versions may delete deprecated fields or add new variant constructors. At most one diagnostic version change per compiler minor release, with a metadata field carrying the version and a valid flag so consumers can detect schema drift at runtime.

  • Tool integration: the RFC lists five requirements drawn from dune and Merlin developers: output must be redirectable to separate files, parsable without ad-hoc lexers, version-pinnable, format-agnostic, and derivable from compiler-libs so external tools can generate their own schemas.