PackageDb: Explicitly unlock package database before closing
[ghc.git] / ghc / ghc-bin.cabal.in
index ba17150..b04c13a 100644 (file)
@@ -9,14 +9,15 @@ Copyright: XXX
 Author: XXX
 Maintainer: glasgow-haskell-users@haskell.org
 Homepage: http://www.haskell.org/ghc/
-Synopsis: XXX
+Synopsis: The Glorious Glasgow Haskell Compiler.
 Description:
-        XXX
-Category: XXX
+    This package contains the @ghc@ executable, the user facing front-end
+    to the Glasgow Haskell Compiler.
+Category: Development
 Data-Dir: ..
 Data-Files: settings
 Build-Type: Simple
-Cabal-Version: >= 1.2
+Cabal-Version: >=1.10
 
 Flag ghci
     Description: Build GHCi support.
@@ -24,33 +25,56 @@ Flag ghci
     Manual: True
 
 Executable ghc
+    Default-Language: Haskell2010
+
     Main-Is: Main.hs
-    Build-Depends: base       >= 3   && < 5,
-                   array      >= 0.1 && < 0.4,
-                   bytestring >= 0.9 && < 0.10,
-                   directory  >= 1   && < 1.2,
-                   process    >= 1   && < 1.2,
-                   filepath   >= 1   && < 1.3,
-                   ghc
+    Build-Depends: base       >= 4   && < 5,
+                   array      >= 0.1 && < 0.6,
+                   bytestring >= 0.9 && < 0.11,
+                   directory  >= 1   && < 1.4,
+                   process    >= 1   && < 1.7,
+                   filepath   >= 1   && < 1.5,
+                   ghc-boot   == @ProjectVersionMunged@,
+                   ghc        == @ProjectVersionMunged@
+
     if os(windows)
-        Build-Depends: Win32
+        Build-Depends: Win32  >= 2.3 && < 2.6
     else
-        Build-Depends: unix
+        Build-Depends: unix   == 2.7.*
 
     C-Sources: hschooks.c
 
     GHC-Options: -Wall
     if flag(ghci)
+        -- NB: this is never built by the bootstrapping GHC+libraries
+        Build-depends:
+            containers     == 0.5.*,
+            deepseq        == 1.4.*,
+            ghci           == @ProjectVersionMunged@,
+            haskeline      == 0.7.*,
+            time           == 1.8.*,
+            transformers   == 0.5.*
         CPP-Options: -DGHCI
         GHC-Options: -fno-warn-name-shadowing
-        Other-Modules: InteractiveUI, GhciMonad, GhciTags
-        Build-Depends: mtl, haskeline
-        Extensions: ForeignFunctionInterface,
-                    UnboxedTuples,
-                    FlexibleInstances,
-                    MagicHash
-
-    Extensions: CPP, PatternGuards
-    if impl(ghc >= 7.1)
-        Extensions: NondecreasingIndentation
+        Other-Modules:
+            GHCi.UI
+            GHCi.UI.Info
+            GHCi.UI.Monad
+            GHCi.UI.Tags
+        Other-Extensions:
+            BangPatterns
+            FlexibleInstances
+            LambdaCase
+            MagicHash
+            MultiWayIf
+            OverloadedStrings
+            RankNTypes
+            RecordWildCards
+            ScopedTypeVariables
+            UnboxedTuples
+            ViewPatterns
 
+    Other-Extensions:
+        CPP
+        NondecreasingIndentation
+        TupleSections