Note [Instance overlap and guards]
The first step is to find all instances that /match/ the constraint
we are trying to solve. Next, using pruneOverlapped Matches, we eliminate
from that list of instances any instances that are overlapped. For example:
(A) instance C [a] where ...
(B) instance {-# OVERLAPPING # References 0
This Note does not link to any other.
Referenced by 10
- GHC.Core.InstEnv call site ×9
- Rules for instance lookup GHC.Core.InstEnv