summaryrefslogtreecommitdiff
path: root/libraries/ghci/ghci.cabal.in
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-12-17 20:08:58 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-17 20:58:35 -0500
commit52ba9470a7e85d025dc84a6789aa809cdd68b566 (patch)
treeeedb856723fb2dc0101b946af3702e6c6aee18da /libraries/ghci/ghci.cabal.in
parente0fe7c3131c4a18ddd9dd9f2afdd46cafc8cd7ae (diff)
downloadhaskell-52ba9470a7e85d025dc84a6789aa809cdd68b566.tar.gz
Allow use of the external interpreter in stage1.
Now that we have -fexternal-interpreter, we can lose most of the GHCI ifdefs. Reviewers: simonmar, goldfire, austin, hvr, bgamari Reviewed By: simonmar Subscribers: RyanGlScott, mpickering, angerman, thomie Differential Revision: https://phabricator.haskell.org/D2826
Diffstat (limited to 'libraries/ghci/ghci.cabal.in')
-rw-r--r--libraries/ghci/ghci.cabal.in21
1 files changed, 15 insertions, 6 deletions
diff --git a/libraries/ghci/ghci.cabal.in b/libraries/ghci/ghci.cabal.in
index 9b622e1107..87b2c4e2fd 100644
--- a/libraries/ghci/ghci.cabal.in
+++ b/libraries/ghci/ghci.cabal.in
@@ -17,6 +17,11 @@ cabal-version: >=1.10
build-type: Simple
extra-source-files: changelog.md
+Flag ghci
+ Description: Build GHCi support.
+ Default: False
+ Manual: True
+
source-repository head
type: git
location: http://git.haskell.org/ghc.git
@@ -41,24 +46,28 @@ library
TupleSections
UnboxedTuples
+ if flag(ghci)
+ CPP-Options: -DGHCI
+ exposed-modules:
+ GHCi.Run
+ GHCi.CreateBCO
+ GHCi.ObjLink
+ GHCi.Signals
+ GHCi.TH
+
exposed-modules:
GHCi.BreakArray
GHCi.Message
GHCi.ResolvedBCO
GHCi.RemoteTypes
- GHCi.ObjLink
- GHCi.CreateBCO
GHCi.FFI
GHCi.InfoTable
- GHCi.Run
- GHCi.Signals
- GHCi.TH
GHCi.TH.Binary
SizedSeq
Build-Depends:
array == 0.5.*,
- base == 4.10.*,
+ base >= 4.8 && < 4.11,
binary == 0.8.*,
bytestring == 0.10.*,
containers == 0.5.*,