-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unexpected incompatible type #51
Comments
To support this example, we need complex reasoning about patterns and types to eliminate the types matched by the left hand side of This is something we currently do not support but would like to, although it is very difficult in the general case (where the pattern is more complex than an atom). I plan to investigate this during the coming year. |
@VLanvin isn't this needed for maybe support? In the meantime should we have eqwalizer not run in maybe blocks? Or all maybe blocks will need |
A lot can already be done with maybe blocks and eqWAlizer, such as binding variables via patterns, e.g., More complex behaviour that mixes predicates, patterns, and booleans such as what is being proposed here, is what is not supported currently. I don't think it's worth disabling eqWAlizer in maybe blocks for such cases, as we can indeed use |
I wrote codes with the
maybe feature
like this:I suppose the type spec is correct. However, the eqwalizer reports the error
incompatible_types
.The entire output is as below:
Could you please give me an explanation ?
The text was updated successfully, but these errors were encountered: