From: simonpj Date: Wed, 9 Oct 2002 15:15:59 +0000 (+0000) Subject: [project @ 2002-10-09 15:15:59 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1584 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d05528b08dd9ef1043f4b24ecefbf0ec092048ed;p=ghc-hetmet.git [project @ 2002-10-09 15:15:59 by simonpj] Bale out if duplicate binders --- diff --git a/ghc/compiler/typecheck/TcRnDriver.lhs b/ghc/compiler/typecheck/TcRnDriver.lhs index 04b0ca3..10d0c35 100644 --- 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 {