-
Notifications
You must be signed in to change notification settings - Fork 569
Improve apartness checking #4064
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
Improve apartness checking #4064
Conversation
757a015
to
fbea50e
Compare
58d11e8
to
1a2f20e
Compare
1a2f20e
to
76086c4
Compare
76086c4
to
8f2019c
Compare
8f2019c
to
c53d24e
Compare
Instances in an instance chain that don't match the constraint being searched must be proven apart from the constraint for the search to continue to the next instance in the chain. This commit tweaks the apartness checker to fix a variety of incorrect apartness judgments, and also adds a hint to the NoInstanceFound error message if ambiguous instances (neither matching nor apart) excluded additional instances in a chain from consideration.
c53d24e
to
a5d9a1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! This is going to help a lot with what I think is a relatively common source of confusion.
Just as a procedural note, I want to land #4118 before this, and then adapt this to use the same error message formatting for unnamed instances. |
Sounds good - feel free to go ahead and merge that now if you're ready. |
Instances in an instance chain that don't match the constraint being
searched must be proven apart from the constraint for the search to
continue to the next instance in the chain. This commit tweaks the
apartness checker to fix a variety of incorrect apartness judgments,
and also adds a hint to the NoInstanceFound error message if ambiguous
instances (neither matching nor apart) excluded additional instances in
a chain from consideration.
Description of the change
Fixes #3329, fixes #3531, fixes #3941, fixes #4028.
Checklist: