summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonpj <unknown>2002-10-25 11:33:27 +0000
committersimonpj <unknown>2002-10-25 11:33:27 +0000
commit0abcbf0f5afda9cc067ddcf2c28b463d59d24a1e (patch)
treee126874dc08f3638c9f54943a38769694b935f7e
parent67944e157c667338e206f0cca6c48319ebc256d0 (diff)
downloadhaskell-0abcbf0f5afda9cc067ddcf2c28b463d59d24a1e.tar.gz
[project @ 2002-10-25 11:33:27 by simonpj]
Wibble; cures failure in stage2 build
-rw-r--r--ghc/compiler/typecheck/TcRnTypes.lhs9
1 files changed, 7 insertions, 2 deletions
diff --git a/ghc/compiler/typecheck/TcRnTypes.lhs b/ghc/compiler/typecheck/TcRnTypes.lhs
index 17c3e0a2ff..beff457041 100644
--- a/ghc/compiler/typecheck/TcRnTypes.lhs
+++ b/ghc/compiler/typecheck/TcRnTypes.lhs
@@ -521,9 +521,14 @@ plusImportAvails
dep_pkgs = nub (dpkgs1 ++ dpkgs2) }
where
plus_mod_dep (m1, orphan1, boot1) (m2, orphan2, boot2)
- = ASSERT( m1 == m2 && orphan1 == orphan2 )
- (m1, orphan1, boot1 && boot2)
+ = WARN( not (m1 == m2 && (boot1 || boot2 || orphan1 == orphan2)),
+ (ppr m1 <+> ppr m2) $$ (ppr orphan1 <+> ppr orphan2) $$ (ppr boot1 <+> ppr boot2) )
+ -- Check mod-names match, and orphan-hood matches; but a boot interface
+ -- might not know about orphan hood, so only check the orphan match
+ -- if both are non-boot interfaces
+ (m1, orphan1 || orphan2, boot1 && boot2)
-- If either side can "see" a non-hi-boot interface, use that
+ -- Similarly orphan-hood (see note about about why orphan1 and 2 might differ)
\end{code}
%************************************************************************