Simon Peyton Jones pushed to branch wip/T27844 at Glasgow Haskell Compiler / GHC
Commits:
-
7efb4ae9
by Simon Peyton Jones at 2026-09-27T23:48:39+01:00
1 changed file:
Changes:
| ... | ... | @@ -2291,6 +2291,7 @@ canEqCanLHSFinish_no_unification ev eq_rel swapped lhs rhs |
| 2291 | 2291 | ; check_result <- checkTypeEq ev eq_rel lhs rhs
|
| 2292 | 2292 | ; case check_result of
|
| 2293 | 2293 | PuFail reason
|
| 2294 | +{-
|
|
| 2294 | 2295 | | reason `cterHasOnlyProblems` do_not_prevent_rewriting
|
| 2295 | 2296 | -> do { new_ev <- rewriteEqEvidenceSwapOnly ev eq_rel swapped lhs rhs
|
| 2296 | 2297 | ; continueWith $ Right $
|
| ... | ... | @@ -2298,6 +2299,7 @@ canEqCanLHSFinish_no_unification ev eq_rel swapped lhs rhs |
| 2298 | 2299 | , eq_lhs = lhs , eq_rhs = rhs } }
|
| 2299 | 2300 | |
| 2300 | 2301 | | otherwise
|
| 2302 | +-}
|
|
| 2301 | 2303 | -> -- We can't unify, and this equality should not be used to rewrite
|
| 2302 | 2304 | -- other constraints (e.g. because it has an occurs check).
|
| 2303 | 2305 | -- So add it to the inert Irreds.
|