Skip to content

Adapt sedlex-ppx AST generation for OCaml 5.4#9378

Open
filipeom wants to merge 2 commits intofacebook:mainfrom
filipeom:bump-ppxlib
Open

Adapt sedlex-ppx AST generation for OCaml 5.4#9378
filipeom wants to merge 2 commits intofacebook:mainfrom
filipeom:bump-ppxlib

Conversation

@filipeom
Copy link
Contributor

@filipeom filipeom commented Mar 21, 2026

Refactored pexp_function in sedlex-ppx to use the new 3-argument function and Pfunction_cases required by ppxlib >= 0.37.0. The goal is to make flow compatible with the OCaml 5.4 compiler.

EDIT: Due to the update of ppxlib to 0.37.0 and the transitive dependencies of ppx_expect, the minimum OCaml compiler version also needed to be bumped up to 5.3.0. Consequently, js_of_ocaml also needs to be updated as it wouldn't compile with ocaml 5.3.0. If this is not desired feel free to close this PR.

Refactored `pexp_function` in sedlex-ppx to use the new 3-argument signature
and `Pfunction_cases` required by ppxlib >= 0.37.0. The goal is to make flow
compatible with the OCaml 5.4 compiler.
@meta-cla meta-cla bot added the CLA Signed label Mar 21, 2026
@filipeom filipeom marked this pull request as draft March 21, 2026 15:43
@meta-codesync
Copy link

meta-codesync bot commented Mar 21, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D97610327. (Because this pull request was imported automatically, there will not be any future comments.)

Due to the update of `ppxlib` to 0.37.0 and the transitive dependencies of
`ppx_expect`, the minimum OCaml compiler version needs to be bumped to
5.3.0. Consequently, js_of_ocaml also needs to be updated as it wouldn't
compile with 5.3.0.
@filipeom filipeom marked this pull request as ready for review March 21, 2026 16:46
Copy link
Contributor

@SamChou19815 SamChou19815 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this broke our internal buck2 build that's still stuck in the ocaml 5.2 toolchain, which we share with hhvm and it's not easy to upgrade internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants