From: simonmar Date: Tue, 13 Mar 2001 17:08:36 +0000 (+0000) Subject: [project @ 2001-03-13 17:08:36 by simonmar] X-Git-Tag: Approximately_9120_patches~2426 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e98661669a8857f7e46658f89c2c1bb79a7dcc4f;p=ghc-hetmet.git [project @ 2001-03-13 17:08:36 by simonmar] fix up for GHCi --- diff --git a/ghc/compiler/main/HscMain.lhs b/ghc/compiler/main/HscMain.lhs index f8f43d4..540ea63 100644 --- a/ghc/compiler/main/HscMain.lhs +++ b/ghc/compiler/main/HscMain.lhs @@ -13,14 +13,16 @@ module HscMain ( HscResult(..), hscMain, #include "HsVersions.h" #ifdef GHCI -import RdrHsSyn ( RdrNameStmt ) -import Rename ( renameStmt ) import ByteCodeGen ( byteCodeGen ) +import CoreTidy ( tidyCoreExpr ) +import CorePrep ( corePrepExpr ) +import Rename ( renameStmt ) +import RdrHsSyn ( RdrNameStmt ) +import Type ( Type ) import Id ( Id, idName, setGlobalIdDetails ) import IdInfo ( GlobalIdDetails(VanillaGlobal) ) import HscTypes ( InteractiveContext(..), TyThing(..) ) -import PrelNames ( iINTERACTIVE ) -import CoreTidy ( tidyCoreExpr ) +import PrelNames ( iNTERACTIVE ) import StringBuffer ( stringToStringBuffer ) #endif @@ -528,11 +530,11 @@ hscStmt dflags hst hit pcs0 icontext stmt just_expr -- Tidy it (temporary, until coreSat does cloning) ; tidy_expr <- tidyCoreExpr simpl_expr - -- Saturate it - ; sat_expr <- coreSatExpr dflags tidy_expr + -- Prepare for codegen + ; prepd_expr <- corePrepExpr dflags tidy_expr -- Convert to BCOs - ; bcos <- coreExprToBCOs dflags sat_expr + ; bcos <- coreExprToBCOs dflags prepd_expr ; let -- Make all the bound ids "global" ids, now that