You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would expect that inst3`` results in successful typeclass search at inferInstanceininst4. If we comment out inst1`, which ought to be irrelevant, then this actually happens.
Actual behavior:
inferInstance fails with
typeclass instance problem is stuck, it is often due to metavariables
GoodFoo Nat HasFoo.foo
Tracing instance synthesis reveals that the inference process crashes when processing the first instance, meaning that the rest of the instance search is not tried and this very easy instance search problem fails:
Description
This was a problem minimized and reported by @digama0 in April on Zulip, but it didn't make it here.
Steps to Reproduce
Expected behavior:
One would expect that
inst3`` results in successful typeclass search at
inferInstancein
inst4. If we comment out
inst1`, which ought to be irrelevant, then this actually happens.Actual behavior:
inferInstance
fails withTracing instance synthesis reveals that the inference process crashes when processing the first instance, meaning that the rest of the instance search is not tried and this very easy instance search problem fails:
Versions
Still present at
4.11.0-rc2
Impact
This affects some typeclasses currently in Batteries about
Ord
instances, which we may want to adopt if available.Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: