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
Superclass constraints are ignored in instances #421
Comments
I took a look at this, and it's going to need more work, but I at least know what's wrong. We can find a |
Isn't that the wrong way around though? It's |
I'm not sure that makes it any clearer actually ;) I thought this would "just" need fixing by doing something like pulling through the superclass constraints and then applying the current substitution to them when constructing the constraint context. I don't know if that makes sense in the PS typechecker (I'm not sure I've ever looked into the typeclass machinery much), but I was doing something like that in the language I was working on previously. |
@garyb To find the instance for |
Got it 💡 I wasn't actually seeing the right problem, which didn't help! After playing around with some test cases I see where this arises now. |
Fix #421, match type instance heads eagerly
The text was updated successfully, but these errors were encountered: