Skip to content

Commit

Permalink
Portage.GHCCore: Add ghc-9.8.1, ghc-9.8.2
Browse files Browse the repository at this point in the history
Signed-off-by: hololeap <[email protected]>
  • Loading branch information
hololeap committed Mar 5, 2024
1 parent 827b3c5 commit 5ff642f
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion src/Portage/GHCCore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import Debug.Trace
ghcs :: [(DC.CompilerInfo, InstalledPackageIndex)]
ghcs =
[ ghc902, ghc924, ghc925, ghc926, ghc927, ghc928, ghc945, ghc946, ghc947
, ghc948, ghc962, ghc963, ghc964
, ghc948, ghc962, ghc963, ghc964, ghc981, ghc982
]

-- | Maybe determine the appropriate 'Cabal.Version' of the @Cabal@ package
Expand All @@ -66,6 +66,8 @@ cabalFromGHC ver = lookup ver table
, ([9,6,2], Cabal.mkVersion [3,10,1,0])
, ([9,6,3], Cabal.mkVersion [3,10,1,0])
, ([9,6,4], Cabal.mkVersion [3,10,1,0])
, ([9,8,1], Cabal.mkVersion [3,10,2,0])
, ([9,8,2], Cabal.mkVersion [3,10,2,0])
]

platform :: Platform
Expand Down Expand Up @@ -168,6 +170,12 @@ mkInfoIndex
-> (DC.CompilerInfo, InstalledPackageIndex)
mkInfoIndex ghcVer pids = (ghc ghcVer, mkIndex ghcVer pids)

ghc982 :: (DC.CompilerInfo, InstalledPackageIndex)
ghc982 = mkInfoIndex [9,8,2] ghc982_pkgs

ghc981 :: (DC.CompilerInfo, InstalledPackageIndex)
ghc981 = mkInfoIndex [9,8,1] ghc981_pkgs

ghc964 :: (DC.CompilerInfo, InstalledPackageIndex)
ghc964 = mkInfoIndex [9,6,4] ghc964_pkgs

Expand Down Expand Up @@ -220,6 +228,60 @@ ghc902 = mkInfoIndex [9,0,2] ghc902_pkgs
-- * https://flora.pm/packages/%40hackage/ghc/9.0.2/dependencies
-- * https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history
-- * @./scripts/scan-ghc-library-versions.bash@ in the gentoo-haskell tree
ghc982_pkgs :: [Cabal.PackageIdentifier]
ghc982_pkgs =
[ p "array" [0,5,6,0]
, p "base" [4,19,1,0]
, p "binary" [0,8,9,1]
, p "bytestring" [0,12,1,0]
, p "containers" [0,6,8]
, p "deepseq" [1,5,0,0]
, p "directory" [1,3,8,1]
, p "exceptions" [0,10,7]
, p "filepath" [1,4,200,1]
, p "ghc-bignum" [1,3]
, p "ghc-compact" [0,1,0,0]
, p "ghc-prim" [0,11,0]
, p "hpc" [0,7,0,0]
, p "integer-gmp" [1,1]
, p "mtl" [2,3,1]
, p "pretty" [1,1,3,6]
, p "process" [1,6,18,0]
, p "stm" [2,5,2,1]
, p "template-haskell" [2,21,0,0]
, p "terminfo" [0,4,1,6]
, p "time" [1,12,2]
, p "transformers" [0,6,1,0]
, p "unix" [2,8,4,0]
]

ghc981_pkgs :: [Cabal.PackageIdentifier]
ghc981_pkgs =
[ p "array" [0,5,6,0]
, p "base" [4,19,0,0]
, p "binary" [0,8,9,1]
, p "bytestring" [0,12,0,2]
, p "containers" [0,6,8]
, p "deepseq" [1,5,0,0]
, p "directory" [1,3,8,1]
, p "exceptions" [0,10,7]
, p "filepath" [1,4,100,4]
, p "ghc-bignum" [1,3]
, p "ghc-compact" [0,1,0,0]
, p "ghc-prim" [0,11,0]
, p "hpc" [0,7,0,0]
, p "integer-gmp" [1,1]
, p "mtl" [2,3,1]
, p "pretty" [1,1,3,6]
, p "process" [1,6,18,0]
, p "stm" [2,5,2,1]
, p "template-haskell" [2,21,0,0]
, p "terminfo" [0,4,1,6]
, p "time" [1,12,2]
, p "transformers" [0,6,1,0]
, p "unix" [2,8,3,0]
]

ghc964_pkgs :: [Cabal.PackageIdentifier]
ghc964_pkgs =
[ p "array" [0,5,5,0]
Expand Down

0 comments on commit 5ff642f

Please sign in to comment.