summaryrefslogtreecommitdiff
path: root/ghc/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-04-29 00:58:38 +0000
committerIan Lynagh <igloo@earth.li>2009-04-29 00:58:38 +0000
commit46aed8a4a084add708bbd119d19905105d5f0d72 (patch)
tree2f93cdcc414bc3a3b128512b0a1ee3d6ddce95bf /ghc/ghc.mk
parente213baf0e233efca39d627efcbabeeaac14f3e5c (diff)
downloadhaskell-46aed8a4a084add708bbd119d19905105d5f0d72.tar.gz
Use haskeline, rather than editline, for line editing in ghci
Diffstat (limited to 'ghc/ghc.mk')
-rw-r--r--ghc/ghc.mk20
1 files changed, 14 insertions, 6 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index ccd4c5d685..3a3edec1ce 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -41,8 +41,8 @@ endif
ghc_stage1_MODULES = Main
-ghc_stage2_MODULES = $(ghc_stage1_MODULES)
-ghc_stage3_MODULES = $(ghc_stage1_MODULES)
+ghc_stage2_MODULES = $(ghc_stage1_MODULES) GhciMonad GhciTags InteractiveUI
+ghc_stage3_MODULES = $(ghc_stage2_MODULES)
ghc_stage1_PROG = ghc-stage1$(exeext)
ghc_stage2_PROG = ghc-stage2$(exeext)
@@ -53,10 +53,18 @@ ghc_stage1_USE_BOOT_LIBS = YES
ghc_stage1_HC_OPTS += -package $(compiler_PACKAGE)-$(compiler_stage1_VERSION)
ghc_stage2_HC_OPTS += -package $(compiler_PACKAGE)-$(compiler_stage2_VERSION)
ghc_stage3_HC_OPTS += -package $(compiler_PACKAGE)-$(compiler_stage3_VERSION)
-
-ghc_stage1_HC_OPTS += -XCPP -XPatternGuards
-ghc_stage2_HC_OPTS += -XCPP -XPatternGuards
-ghc_stage3_HC_OPTS += -XCPP -XPatternGuards
+ghc_stage2_HC_OPTS += -package haskeline
+ghc_stage3_HC_OPTS += -package haskeline
+
+ghc_language_extension_flags = -XCPP \
+ -XPatternGuards \
+ -XForeignFunctionInterface \
+ -XUnboxedTuples \
+ -XFlexibleInstances \
+ -XMagicHash
+ghc_stage1_HC_OPTS += $(ghc_language_extension_flags)
+ghc_stage2_HC_OPTS += $(ghc_language_extension_flags)
+ghc_stage3_HC_OPTS += $(ghc_language_extension_flags)
# In stage1 we might not benefit from cross-package dependencies and
# recompilation checking. We must force recompilation here, otherwise