Skip to content

Commit 2ad960c

Browse files
committed
Replace ghc-9.2.7->9.4.6 and lts-20.23->lts-21.8
Also, update `etc/dockerfiles/arm64.Dockerfile`, `etc/scripts/build-stack-installer.hs` and `etc/scripts/release.hs`.
1 parent 3e90ec5 commit 2ad960c

File tree

112 files changed

+153
-151
lines changed

Some content is hidden

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

112 files changed

+153
-151
lines changed

etc/scripts/build-stack-installer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{- stack script
2-
--resolver lts-20.26
2+
--resolver lts-21.8
33
--install-ghc
44
--package nsis
55
-}

etc/scripts/release.hs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
{- stack script
2-
--resolver lts-20.26
3-
--extra-dep Cabal-3.6.3.0
4-
--extra-dep directory-1.3.6.2
2+
--resolver lts-21.8
53
--ghc-options -Wall
64
-}
75

86
-- As no packages are specified in the `stack script` command in the Stack
97
-- interpreter options comment, Stack deduces the required packages from the
108
-- module imports, being: Cabal, base, bytestring, directory, extra, process,
119
-- shake, tar, zip-archive and zlib. These are either GHC boot packages or in
12-
-- the snapshot. However, Stackage LTS 20.26 includes `Win32` directly, which
13-
-- results in `Cabal` and `directory` being 'replaced' on Windows. Consequently,
14-
-- they need to be specified as extra deps.
10+
-- the snapshot. Stackage LTS Haskell 21.8 does not include boot packages
11+
-- directly.
1512

1613
{-# LANGUAGE PatternSynonyms #-}
1714
{-# LANGUAGE RecordWildCards #-}

src/Stack/Init.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ renderStackYaml p ignoredPackages dupPackages =
421421
, "A snapshot resolver dictates the compiler version and the set of packages"
422422
, "to be used for project dependencies. For example:"
423423
, ""
424-
, "resolver: lts-20.26"
425-
, "resolver: nightly-2023-08-06"
424+
, "resolver: lts-21.8"
425+
, "resolver: nightly-2023-08-19"
426426
, "resolver: ghc-9.6.2"
427427
, ""
428428
, "The location of a snapshot can be provided as a file or url. Stack assumes"

test/integration/lib/StackTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ isMacOSX = os == "darwin"
363363
-- the main @stack.yaml@.
364364
--
365365
defaultResolverArg :: String
366-
defaultResolverArg = "--resolver=lts-20.26"
366+
defaultResolverArg = "--resolver=lts-21.8"
367367

368368
-- | Remove a file and ignore any warnings about missing files.
369369
removeFileIgnore :: HasCallStack => FilePath -> IO ()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
compiler: ghc-9.2.8
1+
compiler: ghc-9.4.6
22
name: my-snapshot
33
packages:
44
- mtl-2.2.1

test/integration/tests/1265-extensible-snapshots/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ main = do
66
stackErr ["build", "zlib-bindings"]
77
stack ["build", "--stack-yaml", "stack-modify-lts.yaml", "async"]
88
stack ["build", "--stack-yaml", "stack-local-snapshot.yaml", "async"]
9-
stack ["build", "--stack-yaml", "stack-remote-snapshot.yaml", "async"]
9+
stack ["build", "--stack-yaml", "stack-remote-snapshot.yaml", "acme-missiles"]
1010
stackErr ["build", "--stack-yaml", "stack-modify-lts.yaml", "zlib-bindings"]
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
name: test-snapshot-2
33
packages:
4-
- stm-2.5.0.0
5-
- async-2.1.0
6-
- zlib-0.6.2.1@sha256:201b3f7d4edd0a6a0b235105a4d1aa8d30dcb7c8b4043102487407a4753657ef,4508
4+
- stm-2.5.1.0
5+
- async-2.2.4
6+
- hashable-1.4.2.0
7+
- zlib-0.6.3.0@sha256:9adce39e4ca0b7a87d45df0a243134816c57059a08e28cff5469c98ae1f54dfc,5367
78
# FIXME: test these here
89
flags: {}
910
ghc-options: {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
name: snapshot-modify-lts
33
drop-packages:
44
- zlib
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
resolver: lts-20.26
2+
resolver: lts-21.8
33
name: local-snapshot
44
packages:
55
- archive: package-0.1.2.3.tar.gz
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
resolver: lts-20.26
2+
resolver: lts-21.8
33
name: remote-snapshot
44
packages:
5-
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/ghc-prim-0.8.0.tar.gz
5+
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/acme-missiles-0.3.tar.gz

test/integration/tests/1337-unicode-everywhere/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
packages:
33
- '.'
44
extra-deps: []

test/integration/tests/1438-configure-options/files/stack-everything.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22

33
extra-deps:
44
- acme-dont-1.1@rev:0

test/integration/tests/1438-configure-options/files/stack-locals.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22

33
extra-deps:
44
- acme-dont-1.1@rev:0

test/integration/tests/1438-configure-options/files/stack-name.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22

33
extra-deps:
44
- acme-dont-1.1@rev:0

test/integration/tests/1438-configure-options/files/stack-targets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22

33
extra-deps:
44
- acme-dont-1.1@rev:0

test/integration/tests/1659-skip-component/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
packages:
33
- '.'
44
extra-deps: []

test/integration/tests/1884-url-to-tarball/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ extra-deps:
22
- location: https://hackage.haskell.org/package/half-0.2.2.3/half-0.2.2.3.tar.gz
33
sha256: 85c244c80d1c889a3d79073a6f5a99d9e769dbe3c574ca11d992b2b4f7599a5c
44
size: 6050
5-
resolver: lts-20.26
5+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8

test/integration/tests/2433-ghc-by-version/files/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
set -exuo pipefail
44

5-
export PATH=$(pwd)/fake-path:$("$STACK_EXE" path --resolver ghc-9.2.8 --compiler-bin):$PATH
5+
export PATH=$(pwd)/fake-path:$("$STACK_EXE" path --resolver ghc-9.4.6 --compiler-bin):$PATH
66
export STACK_ROOT=$(pwd)/fake-root
77

88
which ghc
99

10-
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.2.8 ghc -- --info
11-
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.2.8 runghc foo.hs
10+
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.4.6 ghc -- --info
11+
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.4.6 runghc foo.hs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
packages:
33
- foo
44
- bar

test/integration/tests/2997-ensure-warnings-output/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
packages:
33
- foo
44
- bar

test/integration/tests/32-unlisted-module/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ flags: {}
22
packages:
33
- '.'
44
extra-deps: []
5-
resolver: lts-20.26
5+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
packages:
33
- '.'

test/integration/tests/335-multi-package-flags/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ flags: {}
22
packages:
33
- '.'
44
extra-deps: []
5-
resolver: lts-20.26
5+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6

test/integration/tests/3396-package-indices/files/my-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
compiler: ghc-9.2.8
1+
compiler: ghc-9.4.6
22
name: my-snapshot
33

44
packages:

test/integration/tests/3431-precompiled-works/files/custom1/custom1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
name: custom1
33
packages:
44
- stm-2.5.0.0

test/integration/tests/3431-precompiled-works/files/custom2/custom2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
name: custom2
33
packages:
44
- stm-2.5.0.0

test/integration/tests/345-override-bytestring/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
extra-deps:
33
- bytestring-0.11.3.1
44
- binary-0.8.9.0

test/integration/tests/3533-extra-deps-solver/files/orig-stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22

33
packages:
44
- ./local-mmorph

test/integration/tests/3574-extra-dep-local/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22

33
packages: []
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8

test/integration/tests/365-invalid-success/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ flags: {}
22
packages:
33
- '.'
44
extra-deps: []
5-
resolver: lts-20.26
5+
resolver: lts-21.8

test/integration/tests/366-non-root-dir/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ flags: {}
22
packages:
33
- '.'
44
extra-deps: []
5-
resolver: lts-20.26
5+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8

test/integration/tests/3861-ignore-bounds-in-snapshots/files/snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
packages:
33
- ./bad-bounds.tar
44

test/integration/tests/3861-ignore-bounds-in-snapshots/files/stack-bad.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
extra-deps:
33
- ./bad-bounds.tar
44

test/integration/tests/3863-purge-command/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ flags: {}
22
packages:
33
- '.'
44
extra-deps: []
5-
resolver: lts-20.26
5+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
extra-deps:
33
- stm-2.4.4.1
44
- mtl-2.2.1

test/integration/tests/3926-ghci-with-sublibraries/files/files.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
cabal-version: 2.0
2+
13
name: files
24
version: 0.1.0.0
35
build-type: Simple
4-
cabal-version: >= 2.0
56

67
library
78
hs-source-dirs: src
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
extra-deps:
3-
- stm-2.4.4.1
4-
- mtl-2.2.1
3+
- stm-2.5.1.0
4+
- mtl-2.2.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
extra-deps:
33
- base-4.10.1.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8

test/integration/tests/3942-solver-error-output/files/test-stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22

33
packages: []
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
extra-deps:
33
- stm-2.4.4.1
44
- mtl-2.2.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build:
22
test-arguments:
33
no-run-tests: true
4-
resolver: ghc-9.2.8
4+
resolver: ghc-9.4.6
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
resolver: lts-20.26
1+
# As of 20 August 2023, there is no Nix package haskell.compiler.ghc946.
2+
# Available options include ghc926, ghc94, ghc942, ghc943 or ghc944.
3+
resolver: lts-20.24 # GHC 9.2.7

test/integration/tests/4101-dependency-tree/Main.hs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@ main =
1212
stackCheckStdout ["ls", "dependencies", "tree"] $ \stdOut -> do
1313
let expected = unlines [ "Packages"
1414
, "├─┬ files 0.1.0.0"
15-
, "│ ├─┬ base 4.16.4.0"
15+
, "│ ├─┬ base 4.17.2.0"
1616
]
1717
unless (expected `isPrefixOf` stdOut) $
1818
error $ unlines [ "Expected:", expected, "Actual:", stdOut ]
1919

2020
stackCheckStdout ["ls", "dependencies", "tree", "--depth=1"] $ \stdOut -> do
2121
let expected = unlines [ "Packages"
2222
, "├─┬ files 0.1.0.0"
23-
, "│ ├── base 4.16.4.0"
23+
, "│ ├── base 4.17.2.0"
2424
, "│ ├── filelock 0.1.1.2"
2525
, "│ ├── mtl 2.2.2"
2626
, "│ └── subproject 0.1.0.0"
2727
, "└─┬ subproject 0.1.0.0"
28-
, " └── base 4.16.4.0"
28+
, " └── base 4.17.2.0"
2929
]
3030
when (stdOut /= expected) $
3131
error $ unlines [ "Expected:", expected, "Actual:", stdOut ]
3232

3333
stackCheckStdout ["ls", "dependencies", "tree", "subproject"] $ \stdOut -> do
3434
let expected = unlines [ "Packages"
3535
, "└─┬ subproject 0.1.0.0"
36-
, " └─┬ base 4.16.4.0"
37-
," ├─┬ ghc-bignum 1.2"
38-
," │ └─┬ ghc-prim 0.8.0"
39-
," │ └── rts 1.0.2"
40-
," ├─┬ ghc-prim 0.8.0"
41-
," │ └── rts 1.0.2"
42-
," └── rts 1.0.2"
36+
, " └─┬ base 4.17.2.0"
37+
, " ├─┬ ghc-bignum 1.3"
38+
, " │ └─┬ ghc-prim 0.9.1"
39+
, " │ └── rts 1.0.2"
40+
, " ├─┬ ghc-prim 0.9.1"
41+
, " │ └── rts 1.0.2"
42+
, " └── rts 1.0.2"
4343
]
4444
when (stdOut /= expected) $
4545
error $ unlines [ "Expected:", expected, "Actual:", stdOut ]

test/integration/tests/4101-dependency-tree/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22
packages:
33
- .
44
- subproject
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
packages:
33
- v1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: ghc-9.2.8
1+
resolver: ghc-9.4.6
22
packages:
33
- v2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.26
1+
resolver: lts-21.8
22

33
packages:
44
- .

0 commit comments

Comments
 (0)