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

Fix partial application for uncurried functions with labeled args #6198

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Apr 25, 2023

Partial application for uncurried functions used normal application. There's an issue with the code generated in the presence of labeled arguments, as the function generated is curried.

This PR changes the translation from typed ast to lambda for the uncurried partial application case, by writing a single function with all the leftover arguments. So it correctly represents an uncurried function.

Fixex #6164

Partial application for uncurried functions used normal application.
There's an issue with the code generated in the presence of labeled arguments, ad the function generated is curried.

This PR changes the translation from typed ast to lambda for the uncurried partial application case, by writing a single function with all the leftover arguments. So it correctly represents an uncurried function.

Fixex #6164
@cristianoc cristianoc requested a review from cknitt April 25, 2023 08:04
@cristianoc cristianoc added this to the v11.0 milestone Apr 25, 2023
@cristianoc cristianoc merged commit 29e27e4 into master Apr 26, 2023
13 checks passed
@cristianoc cristianoc deleted the fix_partial_app branch April 26, 2023 01:16
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.

None yet

1 participant