-
Notifications
You must be signed in to change notification settings - Fork 42
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
Possible bug in unification #16
Comments
As small as an example as I can manage:
Replacing |
Here's a smaller example:
There is a bug in Links in the way it is reporting the bug in your program. The bug in your program is that due to the ML value restriction, exists is not polymorphic in its effects, but filterConstraint is declared to have a type that is polymorphic in its effects. The solution is to eta expand exists:
or:
In fact, we could, and perhaps should relax the value restriction in the case of pure functions (like compose, pure, and empty), in which case your original program would work. |
Thanks, I fixed my code :-) |
row was unified with a rigid open row
I get this somewhat confusing error message.
Is this a bug in the unification code, or could someone explain to me what's wrong with my code?
The text was updated successfully, but these errors were encountered: