projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87124ee
)
Fix egregious typo in TcUnify
author
simonpj@microsoft.com
<unknown>
Fri, 27 Apr 2007 15:41:31 +0000
(15:41 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 27 Apr 2007 15:41:31 +0000
(15:41 +0000)
Tom S found this bug by inspection; we've never seen it
fail in the wild, but it was obviosly Utterly Wrong
compiler/typecheck/TcUnify.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcUnify.lhs
b/compiler/typecheck/TcUnify.lhs
index
dac7803
..
e1b4bd4
100644
(file)
--- a/
compiler/typecheck/TcUnify.lhs
+++ b/
compiler/typecheck/TcUnify.lhs
@@
-526,7
+526,7
@@
boxyLub orig_ty1 orig_ty2
-- Look inside type synonyms, but only if the naive version fails
go ty1 ty2 | Just ty1' <- tcView ty1 = go ty1' ty2
- | Just ty2' <- tcView ty1 = go ty1 ty2'
+ | Just ty2' <- tcView ty2 = go ty1 ty2'
-- For now, we don't look inside ForAlls, PredTys
go ty1 ty2 = orig_ty1 -- Default