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:
887941a
)
[project @ 2002-10-09 15:15:59 by simonpj]
author
simonpj
<unknown>
Wed, 9 Oct 2002 15:15:59 +0000
(15:15 +0000)
committer
simonpj
<unknown>
Wed, 9 Oct 2002 15:15:59 +0000
(15:15 +0000)
Bale out if duplicate binders
ghc/compiler/typecheck/TcRnDriver.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/typecheck/TcRnDriver.lhs
b/ghc/compiler/typecheck/TcRnDriver.lhs
index
04b0ca3
..
10d0c35
100644
(file)
--- a/
ghc/compiler/typecheck/TcRnDriver.lhs
+++ b/
ghc/compiler/typecheck/TcRnDriver.lhs
@@
-658,6
+658,8
@@
rnTopSrcDecls group
tcg_imports gbl })
$ do {
+ failIfErrsM ; -- No point in continuing if (say) we have duplicate declarations
+
-- Rename the source decls
(tcg_env, rn_src_decls, src_fvs) <- initRn SourceMode (rnSrcDecls group) ;
setGblEnv tcg_env $ do {