Commit a2a9006b authored by xldenis's avatar xldenis Committed by Marge Bot

Fix issue #18262 by zonking constraints after solving

Zonk residual constraints in checkForExistence to reveal user type
errors.

Previously when `:instances` was used with instances that have TypeError
constraints the result would look something like:

instance [safe] s0 => Err 'A -- Defined at ../Bug2.hs:8:10

whereas after zonking, `:instances` now sees the `TypeError` and
properly eliminates the constraint from the results.
parent cad62ef1
Pipeline #21357 failed with stages
in 431 minutes and 16 seconds