Core covers the OCaml compiler and language RFCs.
Repository summaries
ocaml/RFCs
PermalinkFeatures
-
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
metadatafield carrying the version and avalidflag 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-libsso external tools can generate their own schemas.