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

Macro functions applied to "tuples" results in type error #425

Open
edsko opened this issue Feb 19, 2025 · 0 comments
Open

Macro functions applied to "tuples" results in type error #425

edsko opened this issue Feb 19, 2025 · 0 comments
Labels
enhancement New feature or request macros

Comments

@edsko
Copy link
Collaborator

edsko commented Feb 19, 2025

Something like

#define ARGS 1,2
#define SUM(X,Y) X + Y

will result in a type error, because we infer a curried type for SUM, which can then not be applied to the tuple. Agreed with the client that we'd record this as a known limitation at the moment, and will come back to it if and when we have a motivating example.

@edsko edsko added this to the 1: `Storable` instances milestone Feb 19, 2025
@edsko edsko added enhancement New feature or request macros labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request macros
Projects
None yet
Development

No branches or pull requests

1 participant