Merge initial Hadrian snapshot
[ghc.git] / ghc / ghc-bin.cabal.in
1 -- WARNING: ghc-bin.cabal is automatically generated from ghc-bin.cabal.in by
2 -- ./configure.  Make sure you are editing ghc-bin.cabal.in, not ghc-bin.cabal.
3
4 Name: ghc-bin
5 Version: @ProjectVersion@
6 Copyright: XXX
7 -- License: XXX
8 -- License-File: XXX
9 Author: XXX
10 Maintainer: glasgow-haskell-users@haskell.org
11 Homepage: http://www.haskell.org/ghc/
12 Synopsis: The Glorious Glasgow Haskell Compiler.
13 Description:
14     This package contains the @ghc@ executable, the user facing front-end
15     to the Glasgow Haskell Compiler.
16 Category: Development
17 Data-Dir: ..
18 Data-Files: settings
19 Build-Type: Simple
20 Cabal-Version: >=1.10
21
22 Flag ghci
23     Description: Build GHCi support.
24     Default: False
25     Manual: True
26
27 Executable ghc
28     Default-Language: Haskell2010
29
30     Main-Is: Main.hs
31     Build-Depends: base       >= 4   && < 5,
32                    array      >= 0.1 && < 0.6,
33                    bytestring >= 0.9 && < 0.11,
34                    directory  >= 1   && < 1.4,
35                    process    >= 1   && < 1.7,
36                    filepath   >= 1   && < 1.5,
37                    ghc-boot   == @ProjectVersionMunged@,
38                    ghc        == @ProjectVersionMunged@
39
40     if os(windows)
41         Build-Depends: Win32  >= 2.3 && < 2.7
42     else
43         Build-Depends: unix   == 2.7.*
44
45     C-Sources: hschooks.c
46
47     GHC-Options: -Wall
48                  -Wnoncanonical-monad-instances
49                  -Wnoncanonical-monadfail-instances
50                  -Wnoncanonical-monoid-instances
51
52     if flag(ghci)
53         -- NB: this is never built by the bootstrapping GHC+libraries
54         Build-depends:
55             containers     == 0.5.*,
56             deepseq        == 1.4.*,
57             ghci           == @ProjectVersionMunged@,
58             haskeline      == 0.7.*,
59             time           == 1.8.*,
60             transformers   == 0.5.*
61         CPP-Options: -DGHCI
62         GHC-Options: -fno-warn-name-shadowing
63         Other-Modules:
64             GHCi.UI
65             GHCi.UI.Info
66             GHCi.UI.Monad
67             GHCi.UI.Tags
68         Other-Extensions:
69             BangPatterns
70             FlexibleInstances
71             LambdaCase
72             MagicHash
73             MultiWayIf
74             OverloadedStrings
75             RankNTypes
76             RecordWildCards
77             ScopedTypeVariables
78             UnboxedTuples
79             ViewPatterns
80
81     Other-Extensions:
82         CPP
83         NondecreasingIndentation
84         TupleSections