Skip to content

Add support for OCaml 4.13#3

Open
kit-ty-kate wants to merge 4 commits intoocamllibs:masterfrom
kit-ty-kate:413
Open

Add support for OCaml 4.13#3
kit-ty-kate wants to merge 4 commits intoocamllibs:masterfrom
kit-ty-kate:413

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Contributor

This PR comes one top of #2 as ppxlib.0.23.0 will also come with the OCaml 4.13 support.
There was one extra change that was needed for OCaml 4.13. However currently this makes it break with OCaml 4.12 and below as the type of Type_variant changed.
I tried to use [%meta if Sys.ocaml_version >= "4.13.0" then [%p? Type_variant (ctors, _)] else [%p? Type_variant ctors]] instead, however this broke the compilation:

File "_none_", line 1:
Error: execution of module initializers in the shared library failed: (Invalid_argument "index out of bounds")

Feel free to modify this PR

cc @pitag-ha

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant