The Backpack patch.
[ghc.git] / compiler / ghc.cabal.in
index 5506078..67f0aa6 100644 (file)
@@ -2,7 +2,7 @@
 -- ./configure.  Make sure you are editing ghc.cabal.in, not ghc.cabal.
 
 Name: ghc
-Version: @ProjectVersion@
+Version: @ProjectVersionMunged@
 License: BSD3
 License-File: ../LICENSE
 Author: The GHC Team
@@ -45,23 +45,29 @@ Library
     Exposed: False
 
     Build-Depends: base       >= 4   && < 5,
+                   deepseq    >= 1.4 && < 1.5,
                    directory  >= 1   && < 1.3,
-                   process    >= 1   && < 1.3,
+                   process    >= 1   && < 1.5,
                    bytestring >= 0.9 && < 0.11,
-                   time                 < 1.6,
+                   binary     == 0.8.*,
+                   time       >= 1.4 && < 1.7,
                    containers >= 0.5 && < 0.6,
                    array      >= 0.1 && < 0.6,
                    filepath   >= 1   && < 1.5,
-                   template-haskell,
-                   hpc,
-                   transformers,
-                   ghc-boot,
-                   hoopl
+                   template-haskell == 2.11.*,
+                   hpc        == 0.6.*,
+                   transformers == 0.5.*,
+                   ghc-boot   == @ProjectVersionMunged@,
+                   ghc-boot-th == @ProjectVersionMunged@,
+                   hoopl      >= 3.10.2 && < 3.11
 
     if os(windows)
-        Build-Depends: Win32
+        Build-Depends: Win32  == 2.3.*
     else
-        Build-Depends: unix
+        Build-Depends: unix   == 2.7.*
+
+    if flag(ghci)
+        Build-Depends: ghci == @ProjectVersionMunged@
 
     GHC-Options: -Wall -fno-warn-name-shadowing
 
@@ -100,12 +106,15 @@ Library
 
     Include-Dirs: . parser utils
 
-    if impl( ghc >= 7.9 )
-        -- We need to set the unit id to ghc (without a version number)
-        -- as it's magic.  But we can't set it for old versions of GHC (e.g.
-        -- when bootstrapping) because those versions of GHC don't understand
-        -- that GHC is wired-in.
-        GHC-Options: -this-package-key ghc
+    -- We need to set the unit id to ghc (without a version number)
+    -- as it's magic.  But we can't set it for old versions of GHC (e.g.
+    -- when bootstrapping) because those versions of GHC don't understand
+    -- that GHC is wired-in.
+    if impl ( ghc >= 7.11 )
+        GHC-Options: -this-unit-id ghc
+    else
+        if impl( ghc >= 7.9 )
+            GHC-Options: -this-package-key ghc
 
     if flag(stage1)
         Include-Dirs: stage1
@@ -151,6 +160,10 @@ Library
         vectorise
 
     Exposed-Modules:
+        DriverBkp
+        BkpSyn
+        NameShape
+        RnModIface
         Avail
         BasicTypes
         ConLike
@@ -207,6 +220,7 @@ Library
         CmmLint
         CmmLive
         CmmMachOp
+        CmmMonad
         CmmSwitch
         CmmNode
         CmmOpt
@@ -265,6 +279,8 @@ Library
         CoreStats
         MkCore
         PprCore
+        PmExpr
+        TmOracle
         Check
         Coverage
         Desugar
@@ -301,7 +317,6 @@ Library
         TcIface
         FlagChecker
         Annotations
-        BreakArray
         CmdLineParser
         CodeOutput
         Config
@@ -332,6 +347,7 @@ Library
         StaticFlags
         StaticPtrTable
         SysTools
+        Elf
         TidyPgm
         Ctype
         HaddockUtils
@@ -375,6 +391,7 @@ Library
         SimplStg
         StgStats
         UnariseStg
+        RepType
         Rules
         SpecConstr
         Specialise
@@ -390,13 +407,17 @@ Library
         TcAnnotations
         TcArrows
         TcBinds
+        TcSigs
         TcClassDcl
         TcDefaults
         TcDeriv
+        TcDerivInfer
+        TcDerivUtils
         TcEnv
         TcExpr
         TcForeign
         TcGenDeriv
+        TcGenFunctor
         TcGenGenerics
         TcHsSyn
         TcHsType
@@ -407,6 +428,7 @@ Library
         TcPat
         TcPatSyn
         TcRnDriver
+        TcBackpack
         TcRnMonad
         TcRnTypes
         TcRules
@@ -435,7 +457,7 @@ Library
         CoAxiom
         Kind
         Type
-        TypeRep
+        TyCoRep
         Unify
         Bag
         Binary
@@ -449,6 +471,7 @@ Library
         FastStringEnv
         Fingerprint
         FiniteMap
+        FV
         GraphBase
         GraphColor
         GraphOps
@@ -462,10 +485,11 @@ Library
         Pair
         Panic
         Pretty
-        Serialized
         State
         Stream
         StringBuffer
+        UniqDFM
+        UniqDSet
         UniqFM
         UniqSet
         Util
@@ -568,17 +592,24 @@ Library
             Dwarf.Types
             Dwarf.Constants
 
+    if !flag(stage1)
+        -- ghc:Serialized moved to ghc-boot:GHC.Serialized.  So for
+        -- compatibility with GHC 7.10 and earlier, we reexport it
+        -- under the old name.
+        reexported-modules:
+            ghc-boot:GHC.Serialized as Serialized
+
     if flag(ghci)
         Exposed-Modules:
             Convert
+            ByteCodeTypes
             ByteCodeAsm
             ByteCodeGen
             ByteCodeInstr
             ByteCodeItbls
             ByteCodeLink
             Debugger
-            LibFFI
             Linker
-            ObjLink
             RtClosureInspect
             DebuggerUtils
+            GHCi