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

ppx_metaquot: Pervasives is deprecated on 4.08 #21

Closed
aantron opened this issue Jun 18, 2019 · 0 comments · Fixed by #22
Closed

ppx_metaquot: Pervasives is deprecated on 4.08 #21

aantron opened this issue Jun 18, 2019 · 0 comments · Fixed by #22

Comments

@aantron
Copy link
Contributor

aantron commented Jun 18, 2019

Metaquot generates Pervasives.(!) in its output code when metaloc is not used:

let loc = ref (app (evar "Pervasives.!") [evar "Ast_helper.default_loc"])

Compiling this code then results in warnings like this on 4.08:

File "_none_", line 1:
Error (alert deprecated): module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the
stdlib-shims library: https://github.com/ocaml/stdlib-shims
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 a pull request may close this issue.

1 participant