Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OCaml 4.13 #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
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