Note [Evidence for quantified constraints]
The superclass mechanism in GHC.Tc.Solver.Dict.makeSuperClasses risks taking a quantified constraint like (forall a. C a => a ~ b) and generate superclass evidence (forall a. C a => a ~# b) This is a funny thing: neither isPredTy nor isCoVarType are true of it. So we are careful not to generate it in the first place: see Note [Equality superclasses in quantified constraints] in GHC.Tc.Solver.Dict.
References 1
- Equality superclasses in quantified constraints GHC.Tc.Solver.Dict
Referenced by 2
- Equality superclasses in quantified constraints GHC.Tc.Solver.Dict
- Looking up primitive equalities in quantified constraints GHC.Tc.Solver.Equality