Note [Looking up primitive equalities in quantified constraints]

GHC/Tc/Solver/Equality.hs:2918 compiler

For equalities (a ~# b) look up (a ~ b), and then do a superclass
selection. This avoids having to support quantified constraints whose
kind is not Constraint, such as (forall a. F a ~# b)

See
 * Note [Evidence for quantified constraints] in GHC.Core.Predicate
 * Note [Equality superclasses in quantified constraints]
   in GHC.Tc.Solver.Dict

References 2

Referenced by 2