Skip to content

Commit ef9eba2

Browse files
authored
Merge pull request #2121 from tweag/ylecornec/default_9_4_6
Set default ghc verion 9.4.6
2 parents 534a469 + ad8230a commit ef9eba2

File tree

67 files changed

+3389
-1728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3389
-1728
lines changed

.github/workflows/workflow.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
bzlmod: false
5757
# TODO: in a MODULE.bazel file we declare version specific dependencies, would need to use stack snapshot json
5858
# and stack config per GHC version
59-
- ghc: 9.4.6
59+
- ghc: 9.2.8
6060
bzlmod: true
6161
- ghc: 9.6.2
6262
bzlmod: true
@@ -149,7 +149,7 @@ jobs:
149149
exclude:
150150
# TODO: in a MODULE.bazel file we declare version specific dependencies, would need to use stack snapshot json
151151
# and stack config per GHC version
152-
- ghc: 9.4.6
152+
- ghc: 9.2.8
153153
bzlmod: true
154154
- ghc: 9.6.2
155155
bzlmod: true

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/).
6+
## Next release
7+
8+
### Changed
9+
10+
* Use ghc 9.4.6 by default
611

712
## [0.19] 2024-02-5
813

constants.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
test_ghc_version = "9.2.8"
1+
test_ghc_version = "9.4.6"
22
test_asterius_version = "0.0.1"

examples/WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ rules_haskell_dependencies()
1717
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")
1818

1919
haskell_register_ghc_nixpkgs(
20-
attribute_path = "haskell.compiler.ghc928",
20+
attribute_path = "haskell.compiler.ghc946",
2121
repository = "@rules_haskell//nixpkgs:default.nix",
22-
version = "9.2.8",
22+
version = "9.4.6",
2323
)
2424

2525
load("@rules_haskell//haskell:toolchain.bzl", "rules_haskell_toolchains")
2626

27-
rules_haskell_toolchains(version = "9.2.8")
27+
rules_haskell_toolchains(version = "9.4.6")
2828

2929
load("@rules_nixpkgs_cc//:cc.bzl", "nixpkgs_cc_configure")
3030
load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request: {}
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest]
19+
ghc: ['8.0', '8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6']
20+
include:
21+
- os: windows-latest
22+
ghc: 'latest'
23+
- os: macOS-latest
24+
ghc: 'latest'
25+
## Already covered by '9.4'
26+
# - os: ubuntu-latest
27+
# ghc: 'latest'
28+
steps:
29+
- uses: actions/checkout@v3
30+
- uses: haskell/actions/setup@v2
31+
id: setup-haskell-cabal
32+
with:
33+
ghc-version: ${{ matrix.ghc }}
34+
ghcup-release-channel: ${{ matrix.ghcup-release-channel }}
35+
- name: Update cabal package database
36+
run: cabal update
37+
- uses: actions/cache@v3
38+
name: Cache cabal stuff
39+
with:
40+
path: |
41+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
42+
dist-newstyle
43+
key: ${{ runner.os }}-${{ matrix.ghc }}
44+
- name: Build
45+
run: cabal build all --enable-tests
46+
- name: Test
47+
run: cabal test all --enable-tests
48+
- name: Bench
49+
run: cabal bench --benchmark-option=-l
50+
- name: Haddock
51+
run: cabal haddock

examples/primitive/.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
dist
2+
dist-*
3+
cabal-dev
4+
*.o
5+
*.hi
6+
*.chi
7+
*.chs.h
8+
*.dyn_o
9+
*.dyn_hi
10+
.hpc
11+
.hsenv
12+
.cabal-sandbox/
13+
cabal.sandbox.config
14+
*.prof
15+
*.aux
16+
*.hp
17+
*.eventlog
18+
.stack-work/
19+
cabal.project.local
20+
cabal.project.local~
21+
.HTF/
22+
.ghc.environment.*
23+
stack.yaml
24+
*.swm
25+
*.swo
26+
*.swp
27+
test_results/**

examples/primitive/BUILD.bazel

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ haskell_toolchain_library(name = "ghc-prim")
1111

1212
haskell_toolchain_library(name = "rts")
1313

14+
haskell_toolchain_library(name = "template-haskell")
15+
16+
haskell_toolchain_library(name = "deepseq")
17+
1418
cc_library(
1519
name = "memops",
1620
srcs = ["cbits/primitive-memops.c"],
@@ -28,8 +32,10 @@ haskell_library(
2832
visibility = ["//visibility:public"],
2933
deps = [
3034
":base",
35+
":deepseq",
3136
":ghc-prim",
3237
":memops",
38+
":template-haskell",
3339
"//transformers",
3440
],
3541
)

0 commit comments

Comments
 (0)