Skip to content

Commit

Permalink
Upgrade default GHC version to 9.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Oct 23, 2023
1 parent 7e79fb1 commit 104bed7
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
module: [rules_haskell, rules_haskell_nix, rules_haskell_tests]
bzlmod: [bzlmod, workspace]
ghc:
- 9.2.5
- 9.2.8
- 9.4.5
exclude:
- module: rules_haskell_nix
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
module: [rules_haskell, rules_haskell_tests]
bzlmod: [bzlmod, workspace]
ghc:
- 9.2.5
- 9.2.8
- 9.4.5
env:
GHC_VERSION: ${{ matrix.ghc }}
Expand Down
2 changes: 1 addition & 1 deletion constants.bzl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
test_ghc_version = "9.2.5"
test_ghc_version = "9.2.8"
test_asterius_version = "0.0.1"
6 changes: 3 additions & 3 deletions examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load("@rules_nixpkgs_cc//:cc.bzl", "nixpkgs_cc_configure")
load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
Expand Down
2 changes: 1 addition & 1 deletion haskell/ghc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# (see stackage.org).

# Currently, we are using GHC 9.2.x as default.
DEFAULT_GHC_VERSION = "9.2.5"
DEFAULT_GHC_VERSION = "9.2.8"
4 changes: 2 additions & 2 deletions rules_haskell_nix/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ nix_haskell_toolchains = use_extension(
# Declare a default nix-based toolchain
nix_haskell_toolchains.new(
attribute_path = "",
nix_file_content = """with import <nixpkgs> {}; haskell.packages.ghc925.ghc""",
nix_file_content = """with import <nixpkgs> {}; haskell.packages.ghc928.ghc""",
repository = "@nixpkgs_default",
version = "9.2.5",
version = "9.2.8",
)
use_repo(
nix_haskell_toolchains,
Expand Down
4 changes: 2 additions & 2 deletions rules_haskell_tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ haskell_toolchains = use_extension(
"haskell_toolchains",
)

test_ghc_version = "9.2.5"
test_ghc_version = "9.2.8"

test_ghcopts = [
"-XStandaloneDeriving", # Flag used at compile time
Expand Down Expand Up @@ -330,7 +330,7 @@ nix_haskell_toolchains.new(
cabalopts = test_cabalopts,
ghcopts = test_ghcopts,
haddock_flags = test_haddock_flags,
nix_file_content = """with import <nixpkgs> {}; haskell.packages.ghc925.ghc""",
nix_file_content = """with import <nixpkgs> {}; haskell.packages.ghc928.ghc""",
repl_ghci_args = test_repl_ghci_args,
repository = "@nixpkgs_default",
version = test_ghc_version,
Expand Down
4 changes: 2 additions & 2 deletions rules_haskell_tests/ghcide-stack-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-20.3
resolver: lts-20.26
packages:
- co-log-core-0.3.2.0
- ghcide-1.8.0.0
Expand Down Expand Up @@ -28,7 +28,7 @@ drop-packages:
- Win32


# stackage lts-20.3/ghc 9.2.5 only contains Win32-2.12.0.1
# stackage lts-20.26/ghc 9.2.8 only contains Win32-2.12.0.1
flags:
ansi-terminal:
Win32-2-13-1: false
4 changes: 2 additions & 2 deletions rules_haskell_tests/stackage-pinning-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: "lts-20.3"
resolver: "lts-20.26"
packages:
- github: hspec/hspec
# NOTE Keep in sync with resolver version
Expand Down Expand Up @@ -26,7 +26,7 @@ packages:
drop-packages:
- Win32

# stackage lts-20.3/ghc 9.2.5 only contains Win32-2.12.0.1
# stackage lts-20.26/ghc 9.2.8 only contains Win32-2.12.0.1
flags:
ansi-terminal:
Win32-2-13-1: false
2 changes: 1 addition & 1 deletion rules_haskell_tests/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ rule_test(
generates = [
"haddock/ghc-boot-th-{}".format(TEST_GHC_VERSION),
] + {
"9.2.5": [
"9.2.8": [
"haddock/array-0.5.4.0",
"haddock/base-4.16.4.0",
"haddock/deepseq-1.4.6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load(
"@rules_nixpkgs_core//:nixpkgs.bzl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs ? import ./nixpkgs { }, docTools ? true, ghcVersion ? "9.2.5" }:
{ pkgs ? import ./nixpkgs { }, docTools ? true, ghcVersion ? "9.2.8" }:

with pkgs;
mkShell {
Expand Down
4 changes: 2 additions & 2 deletions stackage_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# but with versions <= 2.13.2.0 we encounter the following issue:
# https://github.com/haskell/win32/issues/193

resolver: lts-20.3
resolver: lts-20.26

drop-packages:
- Win32
Expand All @@ -16,7 +16,7 @@ packages:
subdirs:
- Cabal

# stackage lts-20.3/ghc 9.2.5 only contain Win32-2.12.0.1
# stackage lts-20.26/ghc 9.2.8 only contain Win32-2.12.0.1
flags:
ansi-terminal:
Win32-2-13-1: false
4 changes: 2 additions & 2 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
set -eu

# If the environment variable `GHC_VERSION` is not set yet,
# we use the default version (currently "9.2.5").
GHC_VERSION=${GHC_VERSION:="9.2.5"}
# we use the default version (currently "9.2.8").
GHC_VERSION=${GHC_VERSION:="9.2.8"}

readonly MIN_BAZEL_MAJOR=6
readonly MIN_BAZEL_MINOR=0
Expand Down
6 changes: 3 additions & 3 deletions tutorial/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc925",
attribute_path = "haskell.compiler.ghc928",
repository = "@rules_haskell//nixpkgs:default.nix",
version = "9.2.5",
version = "9.2.8",
)

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

rules_haskell_toolchains(version = "9.2.5")
rules_haskell_toolchains(version = "9.2.8")

load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
Expand Down

0 comments on commit 104bed7

Please sign in to comment.