Skip to content

Commit be91e18

Browse files
Merge pull request #2983 from clash-lang/add-9.10.2-support
Add GHC 9.10.2 support
2 parents af37307 + b043b6a commit be91e18

File tree

30 files changed

+7389
-44
lines changed

30 files changed

+7389
-44
lines changed

.ci/docker/build-and-publish-docker-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ elif [[ "$1" != "" ]]; then
1414
exit 1
1515
fi
1616
UBUNTU_VERSION=jammy-20250126
17-
GHC_VERSIONS=("9.10.1" "9.8.4" "9.6.7" "9.4.8" "9.2.8" "9.0.2" "8.10.7")
17+
GHC_VERSIONS=("9.10.2" "9.8.4" "9.6.7" "9.4.8" "9.2.8" "9.0.2" "8.10.7")
1818
CABAL_VERSIONS=("3.14.1.1" "3.14.1.1" "3.14.1.1" "3.14.1.1" "3.14.1.1" "3.14.1.1" "3.12.1.0")
1919

2020
# We want to use docker buildkit so that our layers are built in parallel. This

.ci/gitlab/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.benchmark:
2-
image: ghcr.io/clash-lang/clash-ci:$GHC_VERSION-20250402
2+
image: ghcr.io/clash-lang/clash-ci:$GHC_VERSION-20250719
33
stage: test
44
timeout: 2 hours
55
variables:

.ci/gitlab/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ default:
1212
timeout: 10 minutes
1313
stage: build
1414
variables:
15-
CLASH_DOCKER_TAG: 20250402
15+
CLASH_DOCKER_TAG: 20250719
1616
CACHE_BUST_TOKEN: 3
1717
# Note that we copy+paste the image name into CACHE_FALLBACK_KEY. If we don't,
1818
# $GHC_VERSION gets inserted at verbatim, instead of resolving to some ghc version.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159

160160
# Run steps inside the clash CI docker image
161161
container:
162-
image: ghcr.io/clash-lang/clash-ci:${{ matrix.ghc }}-20250402
162+
image: ghcr.io/clash-lang/clash-ci:${{ matrix.ghc }}-20250719
163163

164164
env:
165165
THREADS: 2

.gitlab-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ tests:
3434
CI_PARENT_PIPELINE_SOURCE: $CI_PIPELINE_SOURCE
3535
parallel:
3636
matrix:
37-
- GHC_VERSION: 9.10.1
37+
- GHC_VERSION: 9.10.2
38+
# TODO: remove this when https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
39+
# is fixed
40+
SKIP_CLASH_FFI_EXAMPLE: "yes"
3841
RUN_TESTS: "always"
3942

4043
- GHC_VERSION: 9.8.4

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ write-ghc-environment-files: always
1515
-- index state, to go along with the cabal.project.freeze file. update the index
1616
-- state by running `cabal update` twice and looking at the index state it
1717
-- displays to you (as the second update will be a no-op)
18-
index-state: 2025-02-10T14:25:49Z
18+
index-state: 2025-07-19T09:09:36Z
1919

2020
-- For some reason the `clash-testsuite` executable fails to run without
2121
-- this, as it cannot find the related library...
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ADDED: Support for GHC 9.10.2

clash-ghc/clash-ghc.cabal

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ common common-options
121121
library
122122
import: common-options
123123
HS-Source-Dirs: src-ghc, src-bin-common
124-
if impl(ghc >= 9.10.0)
125-
HS-Source-Dirs: src-bin-9.10
124+
if impl(ghc >= 9.10.2)
125+
HS-Source-Dirs: src-bin-9.10.2
126+
elif impl(ghc >= 9.10.0)
127+
HS-Source-Dirs: src-bin-9.10.1
126128
elif impl(ghc >= 9.8.0)
127129
HS-Source-Dirs: src-bin-9.8
128130
elif impl(ghc >= 9.6.0)
@@ -174,7 +176,7 @@ library
174176
deepseq >= 1.3.0.2 && < 1.6,
175177
time >= 1.4.0.1 && < 1.15,
176178
ghc-boot >= 8.10.0 && < 9.11,
177-
ghc-prim >= 0.3.1.0 && < 0.12,
179+
ghc-prim >= 0.3.1.0 && < 0.13,
178180
ghci >= 8.10.0 && < 9.11,
179181
uniplate >= 1.6.12 && < 1.8,
180182
reflection >= 2.1.2 && < 3.0,
File renamed without changes.

0 commit comments

Comments
 (0)