Skip to content
  • xldenis's avatar
    Fix issue #18262 by zonking constraints after solving · a2a9006b
    xldenis authored and Marge Bot's avatar Marge Bot committed
    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.
    a2a9006b