Always enable the external interpreter
[ghc.git] / libraries / ghci / ghci.cabal.in
1 -- WARNING: ghci.cabal is automatically generated from ghci.cabal.in by
2 -- ../../configure.  Make sure you are editing ghci.cabal.in, not ghci.cabal.
3
4 name:           ghci
5 version:        @ProjectVersionMunged@
6 license:        BSD3
7 license-file:   LICENSE
8 category:       GHC
9 maintainer:     ghc-devs@haskell.org
10 bug-reports:    https://gitlab.haskell.org/ghc/ghc/issues/new
11 synopsis:       The library supporting GHC's interactive interpreter
12 description:
13             This library offers interfaces which mediate interactions between the
14             @ghci@ interactive shell and @iserv@, GHC's out-of-process interpreter
15             backend.
16 cabal-version:  >=1.10
17 build-type:     Simple
18 extra-source-files: changelog.md
19
20 Flag ghci
21     Description: Build GHCi support.
22     Default: False
23     Manual: True
24
25 source-repository head
26     type:     git
27     location: https://gitlab.haskell.org/ghc/ghc.git
28     subdir:   libraries/ghci
29
30 library
31     default-language: Haskell2010
32     default-extensions: NoImplicitPrelude
33     other-extensions:
34         BangPatterns
35         CPP
36         DeriveGeneric
37         ExistentialQuantification
38         FlexibleInstances
39         GADTs
40         GeneralizedNewtypeDeriving
41         InstanceSigs
42         MagicHash
43         MultiParamTypeClasses
44         RecordWildCards
45         ScopedTypeVariables
46         StandaloneDeriving
47         TupleSections
48         UnboxedTuples
49
50     if flag(ghci)
51         CPP-Options: -DHAVE_INTERNAL_INTERPRETER
52         exposed-modules:
53             GHCi.Run
54             GHCi.CreateBCO
55             GHCi.ObjLink
56             GHCi.Signals
57             GHCi.TH
58
59     include-dirs: @FFIIncludeDir@
60
61     exposed-modules:
62         GHCi.BreakArray
63         GHCi.BinaryArray
64         GHCi.Message
65         GHCi.ResolvedBCO
66         GHCi.RemoteTypes
67         GHCi.FFI
68         GHCi.InfoTable
69         GHCi.StaticPtrTable
70         GHCi.TH.Binary
71         SizedSeq
72
73     Build-Depends:
74         array            == 0.5.*,
75         base             >= 4.8 && < 4.14,
76         binary           == 0.8.*,
77         bytestring       == 0.10.*,
78         containers       >= 0.5 && < 0.7,
79         deepseq          == 1.4.*,
80         filepath         == 1.4.*,
81         ghc-boot         == @ProjectVersionMunged@,
82         ghc-boot-th      == @ProjectVersionMunged@,
83         ghc-heap         == @ProjectVersionMunged@,
84         template-haskell == 2.16.*,
85         transformers     == 0.5.*
86
87     if !os(windows)
88         Build-Depends: unix >= 2.7 && < 2.9