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

Ignore @uncurry attribute in uncurried mode. #6869

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

cristianoc
Copy link
Collaborator

Turns out that @uncurry attribute even in uncurried mode can produce js code that usedCurry. The @uncurry attribute will be deprecated.
For now, this PR ignores it.

let Curry = require("../../lib/js/curry.js");

function map1(prim0, prim1) {
return map(prim0, Curry.__1(prim1));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's puzzling that the @uncurry attribute has the opposite effect of what's supposed to do on this example, but that's the reason for this PR.

Turns out that `@uncurry` attribute even in uncurried mode can produce js code that used`Curry`.
The `@uncurry` attribute will be deprecated.
For now, this PR ignores it.
@cristianoc cristianoc merged commit a164042 into master Jul 10, 2024
19 checks passed
@cristianoc cristianoc deleted the ignore-uncurry-attribute branch July 10, 2024 11:03
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.

2 participants