[project @ 2001-07-17 01:07:57 by sof]
authorsof <unknown>
Tue, 17 Jul 2001 01:07:57 +0000 (01:07 +0000)
committersof <unknown>
Tue, 17 Jul 2001 01:07:57 +0000 (01:07 +0000)
w

ghc/compiler/main/HscMain.lhs

index 6f72a2b..a21f5f4 100644 (file)
@@ -516,9 +516,8 @@ hscStmt dflags hst hit pcs0 icontext stmt just_expr
                then case rn_stmt of { (ExprStmt e _ _, decls) -> 
                     typecheckExpr dflags pcs1 hst type_env
                           print_unqual iNTERACTIVE (e,decls) }
-               else case rn_stmt of { (stmt, decls) -> 
-                    typecheckStmt dflags pcs1 hst type_env
-                          print_unqual iNTERACTIVE bound_names (stmt,decls) }
+               else typecheckStmt dflags pcs1 hst type_env
+                          print_unqual iNTERACTIVE bound_names rn_stmt
 
        ; case maybe_tc_return of
                Nothing -> return (pcs0, Nothing)