opam 2.4.0-alpha1 introduces stateless depexts, a persistent solver timeout via OPAMSOLVERTOLERANCE, and drops GNU patch and diff as runtime dependencies. The OCaml type checker now reduces worst-case recursive-type typing from exponential to near-linear, and the parser restores effect as a valid attribute identifier, fixing a 5.3 regression.
Releases
opam 2.4.0-alpha1: first alpha of the 2.4 series, released 2025-04-18. See the blog post for upgrade instructions and the changelog.
Fixes
OCaml type checker: the recursive-type occurrence check now operates on a shared graph, reducing worst-case typing time from exponential to near-linear for deeply nested unifications. Merged 2025-04-16. #13866
OCaml parser: restores effect as a valid attribute identifier ([@@effect), fixing a 5.3 regression that made it a syntax error. Merged 2025-04-15. #13957
Dune 3.18.1: passes pkg-config extra arguments (including --personality) in all pkgconfig invocations, fixing cases where pkgconf could not locate libraries. #11619
oxcaml/merlin: fixes jump-to-definition resolving to the wrong file when a source file shares its name with a referenced library. Merged 2025-04-17. #142
Features
OCaml Stdlib: adds missing POSIX signal constants and a signal_to_string function to the Sys module. Merged 2025-04-16. #13843
ocamltest: gains a -color={auto,always,never} flag and honours OCAML_COLOR / NO_COLOR environment variables, passing the corresponding --color option to diff. Merged 2025-04-16. #13964
opam 2.4.0-alpha1: adds stateless depexts support, enabling Nix as an external dependency provider. Changelog
opam 2.4.0-alpha1: new OPAMSOLVERTOLERANCE environment variable sets a persistent solver timeout, avoiding repeated hangs on large switches. Changelog
ocaml-lsp: adds a combine-cases code action that merges selected one-line match cases into a single pattern. #1514
Compatibility
odoc 3.0.0: fails to build against OCaml 5.4 trunk; Typedtree.package_type lost its pack_path field and Tpat_alias now takes five arguments. #1339
opam 2.4.0-alpha1: patches now use the OCaml patch library; GNU patch and diff are no longer runtime dependencies. Symlinks in repositories are no longer supported. Changelog