From d05528b08dd9ef1043f4b24ecefbf0ec092048ed Mon Sep 17 00:00:00 2001 From: simonpj Date: Wed, 9 Oct 2002 15:15:59 +0000 Subject: [PATCH] [project @ 2002-10-09 15:15:59 by simonpj] Bale out if duplicate binders --- ghc/compiler/typecheck/TcRnDriver.lhs | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 1.7.10.4