Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

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.