Skip to content

Commit 1ec3a54

Browse files
committed
CI: add GHC 9.10
1 parent 88c81c9 commit 1ec3a54

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# If you remove something from here, then add it to the old-ghcs job.
7171
# Also a removed GHC from here means that we are actually dropping
7272
# support, so the PR *must* have a changelog entry.
73-
ghc: ['9.8.2', '9.6.4', '9.4.8', '9.2.8', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
73+
ghc: ['9.10.0.20240426', '9.8.2', '9.6.4', '9.4.8', '9.2.8', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
7474
exclude:
7575
# corrupts GHA cache or the fabric of reality itself, see https://github.com/haskell/cabal/issues/8356
7676
- os: windows-latest
@@ -104,6 +104,7 @@ jobs:
104104
with:
105105
ghc-version: ${{ matrix.ghc }}
106106
cabal-version: latest # latest is mandatory for cabal-testsuite, see https://github.com/haskell/cabal/issues/8133
107+
ghcup-release-channel: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml
107108

108109
# See the following link for a breakdown of the following step
109110
# https://github.com/haskell/actions/issues/7#issuecomment-745697160

cabal-install/src/Distribution/Client/TargetSelector.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ import Control.Arrow ((&&&))
101101
import Control.Monad hiding
102102
( mfilter
103103
)
104+
#if MIN_VERSION_base(4,20,0)
105+
import Data.Functor as UZ (unzip)
106+
#else
107+
import qualified Data.List.NonEmpty as UZ (unzip)
108+
#endif
104109
import Data.List
105110
( stripPrefix
106111
)
@@ -585,7 +590,7 @@ resolveTargetSelector knowntargets@KnownTargets{..} mfilter targetStrStatus =
585590

586591
classifyMatchErrors errs
587592
| Just expectedNE <- NE.nonEmpty expected =
588-
let (things, got :| _) = NE.unzip expectedNE
593+
let (things, got :| _) = UZ.unzip expectedNE
589594
in TargetSelectorExpected targetStr (NE.toList things) got
590595
| not (null nosuch) =
591596
TargetSelectorNoSuch targetStr nosuch

cabal-install/tests/UnitTests/Distribution/Client/Init/NonInteractive.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE LambdaCase #-}
23

34
module UnitTests.Distribution.Client.Init.NonInteractive
@@ -12,7 +13,9 @@ import UnitTests.Distribution.Client.Init.Utils
1213
import qualified Data.List.NonEmpty as NEL
1314
import qualified Distribution.SPDX as SPDX
1415

16+
#if !MIN_VERSION_base(4,20,0)
1517
import Data.List (foldl')
18+
#endif
1619
import qualified Data.Set as Set
1720
import Distribution.CabalSpecVersion
1821
import Distribution.Client.Init.Defaults

project-cabal/ghc-latest.config

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,17 @@
88

99
-- NOTE: don't forget to update the compiler version in the conditional
1010
-- when upgrading to a newer GHC
11-
if impl(ghc >= 9.8.1)
12-
-- allow-newer: windns:*
11+
if impl(ghc >= 9.10.0)
12+
allow-newer:
13+
--windns:*, rere:*, tree-diff:*, uuid-types:*, these:*, hashable:*, assoc:*, semialign:*, indexed-traversable-instances:*, indexed-traversable:*, OneTuple:*, scientific:*, time-compat:*, text-short:*, integer-conversion:*, generically:*, data-fix:*, binary:*
14+
-- Artem, 2024-04-21: I started and then gave up...
15+
*:base, *:template-haskell, text-short, *:deepseq, *:bytestring, *:ghc-prim
16+
17+
repository head.hackage.ghc.haskell.org
18+
url: https://ghc.gitlab.haskell.org/head.hackage/
19+
secure: True
20+
key-threshold: 3
21+
root-keys:
22+
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
23+
7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
24+
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89

0 commit comments

Comments
 (0)