[project @ 2002-10-09 15:15:59 by simonpj]
authorsimonpj <unknown>
Wed, 9 Oct 2002 15:15:59 +0000 (15:15 +0000)
committersimonpj <unknown>
Wed, 9 Oct 2002 15:15:59 +0000 (15:15 +0000)
Bale out if duplicate binders

ghc/compiler/typecheck/TcRnDriver.lhs

index 04b0ca3..10d0c35 100644 (file)
@@ -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 {