summaryrefslogtreecommitdiff
path: root/Portage/GHCCore.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Portage/GHCCore.hs')
-rw-r--r--Portage/GHCCore.hs38
1 files changed, 37 insertions, 1 deletions
diff --git a/Portage/GHCCore.hs b/Portage/GHCCore.hs
index 5ebfeec..b922e29 100644
--- a/Portage/GHCCore.hs
+++ b/Portage/GHCCore.hs
@@ -31,7 +31,7 @@ import Debug.Trace
-- It means that first ghc in this list is a minmum default.
ghcs :: [(DC.CompilerInfo, InstalledPackageIndex)]
ghcs = modern_ghcs
- where modern_ghcs = [ghc741, ghc742, ghc761, ghc762, ghc782, ghc7101, ghc7102, ghc801, ghc802, ghc821, ghc843, ghc861, ghc863]
+ where modern_ghcs = [ghc741, ghc742, ghc761, ghc762, ghc782, ghc7101, ghc7102, ghc801, ghc802, ghc821, ghc843, ghc861, ghc863, ghc881]
cabalFromGHC :: [Int] -> Maybe Cabal.Version
cabalFromGHC ver = lookup ver table
@@ -47,6 +47,7 @@ cabalFromGHC ver = lookup ver table
, ([8,2,1], Cabal.mkVersion [2,0,0,2])
, ([8,4,3], Cabal.mkVersion [2,2,0,1])
, ([8,6,1], Cabal.mkVersion [2,4,0,1])
+ , ([8,8,1], Cabal.mkVersion [3,0,0,0])
]
platform :: Platform
@@ -116,6 +117,9 @@ ghc :: [Int] -> DC.CompilerInfo
ghc nrs = DC.unknownCompilerInfo c_id DC.NoAbiTag
where c_id = CompilerId GHC (mkVersion nrs)
+ghc881 :: (DC.CompilerInfo, InstalledPackageIndex)
+ghc881 = (ghc [8,8,1], mkIndex ghc881_pkgs)
+
ghc863 :: (DC.CompilerInfo, InstalledPackageIndex)
ghc863 = (ghc [8,6,3], mkIndex ghc863_pkgs)
@@ -159,6 +163,38 @@ ghc741 = (ghc [7,4,1], mkIndex ghc741_pkgs)
-- Source: http://haskell.org/haskellwiki/Libraries_released_with_GHC
-- and our binary tarballs (package.conf.d.initial subdir)
+ghc881_pkgs :: [Cabal.PackageIdentifier]
+ghc881_pkgs =
+ [ p "array" [0,5,4,0]
+ , p "base" [4,13,0,0]
+ , p "binary" [0,8,7,0] -- used by libghc
+ , p "bytestring" [0,10,9,0]
+-- , p "Cabal" [3,0,0,0] package is upgradeable
+ , p "containers" [0,6,2,1]
+ , p "deepseq" [1,4,4,0] -- used by time
+ , p "directory" [1,3,3,2]
+ , p "filepath" [1,4,2,1]
+ , p "ghc-boot" [8,8,1]
+ , p "ghc-boot-th" [8,8,1]
+ , p "ghc-compact" [0,1,0,0]
+ , p "ghc-prim" [0,5,3,0]
+ , p "ghci" [8,8,1]
+-- , p "haskeline" [0,7,4,3] package is upgradeable
+ , p "hpc" [0,6,0,3] -- used by libghc
+ , p "integer-gmp" [1,0,2,0]
+ -- , p "mtl" [2,2,2] package is upgradeable(?)
+ -- , p "parsec" [3,1,14,0] package is upgradeable(?)
+ , p "pretty" [1,1,3,6]
+ , p "process" [1,6,5,1]
+ -- , p "stm" [2,5,0,0] package is upgradeable(?)
+ , p "template-haskell" [2,15,0,0] -- used by libghc
+ -- , p "terminfo" [0,4,1,4]
+ -- , p "text" [1,2,4,0] dependency of Cabal library
+ , p "time" [1,9,3,0] -- used by unix, directory, hpc, ghc. unsafe to upgrade
+ , p "transformers" [0,5,6,2] -- used by libghc
+ , p "unix" [2,7,2,2]
+-- , p "xhtml" [3000,2,2,1]
+ ]
ghc863_pkgs :: [Cabal.PackageIdentifier]
ghc863_pkgs =