Skip to content

Commit bf9300d

Browse files
committed
Replace ghc-9.2.7->9.4.5 and lts-20.23->nightly-2023-06-18
Also, update `etc/dockerfiles/arm64.Dockerfile`, `etc/scripts/build-stack-installer.hs` and `etc/scripts/release.hs`.
1 parent 11dd217 commit bf9300d

File tree

99 files changed

+110
-113
lines changed

Some content is hidden

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

99 files changed

+110
-113
lines changed

etc/dockerfiles/arm64.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Stack is built with GHC 9.2.7. GHC 9.2.7 for Linux/AArch64 says it was made on
1+
# Stack is built with GHC 9.4.5. GHC 9.4.5 for Linux/AArch64 says it was made on
22
# a Debian 10 system and requires GMP 6.1. Debian 10 is codename 'buster' and
33
# includes libc6 (2.28-10+deb10u1).
44
FROM debian:buster
55

66
# pkg-config added to `apt-get install` list because it is required by package
7-
# digest-0.0.1.4.
7+
# digest-0.0.1.7.
88
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
99
curl build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 \
1010
libncurses-dev libncurses5 libtinfo5 libnuma-dev xz-utils g++ gcc \
@@ -22,7 +22,7 @@ RUN cd /tmp && \
2222

2323
# Stack's *.tar archive contains a directory that contains the 'stack'
2424
# executable, hence the use of tar's '--strip-components 1' option.
25-
RUN curl -L https://github.com/commercialhaskell/stack/releases/download/v2.9.3/stack-2.9.3-linux-aarch64.tar.gz --output /tmp/stack.tar.gz && \
25+
RUN curl -L https://github.com/commercialhaskell/stack/releases/download/v2.11.1/stack-2.11.1-linux-aarch64.tar.gz --output /tmp/stack.tar.gz && \
2626
tar xfv /tmp/stack.tar.gz -C /usr/local/bin --strip-components 1 && \
2727
rm /tmp/stack.tar.gz
2828

@@ -54,5 +54,5 @@ RUN stack build shake
5454

5555
COPY etc/scripts/release.hs /src
5656

57-
RUN stack script --resolver lts-20.23 --extra-dep Cabal-3.6.3.0 --compile /src/release.hs -- --version
57+
RUN stack script --resolver nightly-2023-06-18 --compile /src/release.hs -- --version
5858
RUN cp /src/release /home/stack

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.23
2+
--resolver nightly-2023-06-18
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.23
3-
--extra-dep Cabal-3.6.3.0
4-
--extra-dep directory-1.3.6.2
2+
--resolver nightly-2023-06-18
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.23 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 Nightly 2023-06-18 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.23"
425-
, "resolver: nightly-2023-05-26"
424+
, "resolver: lts-20.25"
425+
, "resolver: nightly-2023-06-18"
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
@@ -351,7 +351,7 @@ isMacOSX = os == "darwin"
351351
-- the main @stack.yaml@.
352352
--
353353
defaultResolverArg :: String
354-
defaultResolverArg = "--resolver=lts-20.23"
354+
defaultResolverArg = "--resolver=nightly-2023-06-18"
355355

356356
-- | Remove a file and ignore any warnings about missing files.
357357
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.7
1+
compiler: ghc-9.4.5
22
name: my-snapshot
33
packages:
44
- mtl-2.2.1

test/integration/tests/1265-extensible-snapshots/files/snapshot-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
22
name: test-snapshot-2
33
packages:
44
- stm-2.5.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
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.23
2+
resolver: nightly-2023-06-18
33
name: local-snapshot
44
packages:
55
- archive: package-0.1.2.3.tar.gz
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
resolver: lts-20.23
2+
resolver: nightly-2023-06-18
33
name: remote-snapshot
44
packages:
55
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/ghc-prim-0.8.0.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.23
1+
resolver: nightly-2023-06-18
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.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.23
1+
resolver: nightly-2023-06-18
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.23
5+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18

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.7 --compiler-bin):$PATH
5+
export PATH=$(pwd)/fake-path:$("$STACK_EXE" path --resolver ghc-9.4.5 --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.7 ghc -- --info
11-
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.2.7 runghc foo.hs
10+
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.4.5 ghc -- --info
11+
"$STACK_EXE" --system-ghc --no-install-ghc --resolver ghc-9.4.5 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.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.23
5+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
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.23
5+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5

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.7
1+
compiler: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.23
1+
resolver: nightly-2023-06-18
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.23
1+
resolver: nightly-2023-06-18
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.7
1+
resolver: ghc-9.4.5
22

33
packages: []
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18

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.23
5+
resolver: nightly-2023-06-18

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.23
5+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18

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.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.23
5+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
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,4 +1,4 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
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,3 +1,3 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
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.23
1+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
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.23
1+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
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.7
4+
resolver: ghc-9.4.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18

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.23
1+
resolver: nightly-2023-06-18
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.23
1+
resolver: nightly-2023-06-18
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
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.7
1+
resolver: ghc-9.4.5
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.23
1+
resolver: nightly-2023-06-18
22

33
packages:
44
- .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
22
packages:
33
- '.'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
22
extra-deps:
33
- Cabal-2.4.1.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: ghc-9.2.7
1+
resolver: ghc-9.4.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
22
name: foo
33
packages:
44
- acme-dont-1.1@sha256:8264ad3e5113d3e0417b46e71d5a9c0914a1f03b5b81319cc329f1dc0f49b96c,602
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
22
packages: [.]
33
extra-deps: [./directory]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18

test/integration/tests/5180-ghc-rts-flags/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.23
1+
resolver: nightly-2023-06-18
22
packages:
33
- .
44

test/integration/tests/5272-only-locals/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.7
1+
resolver: ghc-9.4.5
22
extra-deps:
33
- unliftio-core-0.2.0.1@sha256:f9abcdd3f3d28e4840563efb7b8760d2de9b5707bcd6f53a87f6a0d77bb5a9f7,1082
44
# Force a unique snapshot

0 commit comments

Comments
 (0)