# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.115 2000/11/19 18:39:53 simonmar Exp $
+# $Id: Makefile,v 1.116 2000/11/22 10:01:45 sewardj Exp $
TOP = ..
include $(TOP)/mk/boilerplate.mk
SRC_HC_OPTS += \
-cpp -fglasgow-exts \
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser \
- -i$(subst $(space),:,$(DIRS))
+ -i$(subst $(space),:,$(DIRS)) -O -H32m -prof
ghc_407_at_least = $(shell expr "$(GhcMinVersion)" \>= 7)
ifeq "$(ghc_407_at_least)" "1"
import Util
import Outputable
import Panic ( panic )
+import CmdLineOpts ( DynFlags(..) )
#ifdef GHCI
-import CmdLineOpts ( DynFlags(..) )
import Interpreter ( HValue )
import HscMain ( hscExpr, hscTypeExpr )
import RdrName
%************************************************************************
\begin{code}
+#ifndef GHCI
+hscExpr dflags hst hit pcs this_module expr
+ = panic "hscExpr: non-interactive build"
+hscTypeExpr dflags hst hit pcs0 this_module expr
+ = panic "hscTypeExpr: non-interactive build"
+#else
+
hscExpr
:: DynFlags
-> HomeSymbolTable
-> String -- The expression
-> IO ( PersistentCompilerState, Maybe UnlinkedIExpr )
-#ifndef GHCI
-hscExpr dflags hst hit pcs this_module expr
- = panic "hscExpr: non-interactive build"
-#else
-
hscExpr dflags hst hit pcs0 this_module expr
= do {
-- parse, rename & typecheck the expression