From: simonpj Date: Thu, 26 Sep 2002 08:44:48 +0000 (+0000) Subject: [project @ 2002-09-26 08:44:48 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1627 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9ed152764fdc44fbc077751b3442fc7f59306596;p=ghc-hetmet.git [project @ 2002-09-26 08:44:48 by simonpj] Bale out a little earlier on renamer errors --- diff --git a/ghc/compiler/rename/RnSource.lhs b/ghc/compiler/rename/RnSource.lhs index a368122..a56b099 100644 --- a/ghc/compiler/rename/RnSource.lhs +++ b/ghc/compiler/rename/RnSource.lhs @@ -99,6 +99,8 @@ rnSrcDecls decls updGblEnv (\gbl -> gbl { tcg_fix_env = fix_env }) $ do { + failIfErrsM ; -- No point in continuing if (say) we have duplicate declarations + -- Rename remaining declarations (rn_src_decls, src_fvs) <- rn_src_decls decls ;