From 6e6b6f2c929ee59c0ab961f108406a332bda1dee Mon Sep 17 00:00:00 2001 From: simonpj Date: Thu, 13 Nov 2003 15:02:53 +0000 Subject: [PATCH] [project @ 2003-11-13 15:02:53 by simonpj] Stop after renaming if errors are found in TH --- ghc/compiler/typecheck/TcSplice.lhs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/typecheck/TcSplice.lhs b/ghc/compiler/typecheck/TcSplice.lhs index b7b3c29..86f8866 100644 --- a/ghc/compiler/typecheck/TcSplice.lhs +++ b/ghc/compiler/typecheck/TcSplice.lhs @@ -206,7 +206,10 @@ tcTopSplice expr res_ty showSplice "expression" zonked_q_expr (ppr expr2) `thenM_` - rnExpr expr2 `thenM` \ (exp3, fvs) -> + + -- Rename it, but bale out if there are errors + -- otherwise the type checker just gives more spurious errors + checkNoErrs (rnExpr expr2) `thenM` \ (exp3, fvs) -> tcMonoExpr exp3 res_ty -- 1.7.10.4