-
Notifications
You must be signed in to change notification settings - Fork 430
feat: support ppxlib with OCaml 5.2 AST #2835
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
Conversation
a6222cc to
8840de1
Compare
6328e7f to
a4526ec
Compare
davesnx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to review the pprint_ast. Looks good, minor changes
| let df_locallyAbstractFuncAnnotated | ||
| : 'figureMeOut = | ||
| (type a, type b) | ||
| : ( | ||
| (a, b) => | ||
| ( | ||
| inputEchoRecord(a), | ||
| inputEchoRecord(b), | ||
| ) | ||
| ) => | ||
| (input: a, input2: b) => ( | ||
| {inputIs: input}, | ||
| {inputIs: input2}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a weird printing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a pretty big edge case-- no one really writes code like this.
I'm tempted to be reactive here since everything else looks pretty good.
Please feel free to report weird printing when you upgrade internally and I'd be happy to fix those cases.
| let rec eval: type a. term(a) => a = x => | ||
| switch (x) { | ||
| | Int(n) => n | ||
| /* a = int */ | ||
| | Add => ((x, y) => x + y) | ||
| /* a = int => int => int */ | ||
| | App(f, x) => eval(f, eval(x)) | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like an improvement, nice!
f9b776b to
af1a3bf
Compare
CHANGES: - require OCaml >= 4.08 (@anmonteiro, [reasonml/reason#2840](reasonml/reason#2840)) - support ppxlib with OCaml 5.2 AST (and require ppxlib >= 0.36) (@anmonteiro, [reasonml/reason#2835](reasonml/reason#2835))
fixes #2839