Skip to content

Commit bc0b83c

Browse files
authored
Merge pull request #6662 from commercialhaskell/lts-22.43
Bump stack.yaml to lts-22.43
2 parents d5783ec + d23fdef commit bc0b83c

File tree

76 files changed

+129
-147
lines changed

Some content is hidden

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

76 files changed

+129
-147
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ compatibility with a range of versions of GHC that a library package (such as
348348
Stack aims to depend on well-known packages. The specific versions on which it
349349
depends at any time are specified by `package.yaml` and `stack.yaml`. It does
350350
not aim to be compatible with more than one version of the `Cabal` package at
351-
any time. At the time of writing (september 2024) the package versions are
352-
primarily ones in Stackage snapshot LTS Haskell 22.28 (for GHC 9.6.6), together
353-
with extra-deps to depend on the latest version of `hpack`, `pantry`, `tar`,
354-
`tls` and `crypton-connection`.
351+
any time. At the time of writing (December 2024) the package versions are
352+
primarily ones in Stackage snapshot LTS Haskell 22.43 (for GHC 9.6.6), together
353+
with extra-deps to depend on the latest versions of `crypton-connection`,
354+
`hpack`, `pantry`, `tar` and `tls`.
355355

356356
A Stack executable makes use of Cabal (the library) through a small 'Setup'
357357
executable that it compiles from Haskell source code. The executable compiles

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
-- specified by the snapshot specifed in Stack's project-level YAML
3434
-- configuration file (`stack.yaml`). The relevant version of GHC can be
3535
-- confirmed by reviewing the snapshot on Stackage. For example, at:
36-
-- https://www.stackage.org/lts-22.28/cabal.config.
36+
-- https://www.stackage.org/lts-22.43/cabal.config.
3737
--
3838
with-compiler: ghc-9.6.6
3939
import: cabal.config

doc/commands/list_command.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ Error: [S-4926]
4545
pantry, pretty, pasty, xattr, alloy, para, pappy, alure, polar and
4646
factory.
4747
48-
stack --snapshot lts-22.28 list base unix Win32 acme-missiles pantry
48+
stack --snapshot lts-22.43 list base unix Win32 acme-missiles pantry
4949
Error: [S-4926]
5050
* Package does not appear in snapshot (directly or indirectly): acme-missiles.
5151
52-
stack --snapshot lts-22.28 list base unix Win32 pantry
52+
stack --snapshot lts-22.43 list base unix Win32 pantry
5353
base-4.18.2.1
5454
unix-2.8.4.0
5555
Win32-2.13.3.0
5656
pantry-0.9.3.2
5757
58-
stack --snapshot lts-22.28 list
58+
stack --snapshot lts-22.43 list
5959
AC-Angle-1.0
6060
ALUT-2.4.0.3
6161
...

doc/commands/script_command.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ A snapshot must be specified on the command line, using the `--snapshot` option.
4949
For example:
5050

5151
~~~text
52-
stack script --snapshot lts-22.28 MyScript.hs
52+
stack script --snapshot lts-22.43 MyScript.hs
5353
~~~
5454

5555
A package version can be added to the snapshot on the command line with the
@@ -187,7 +187,7 @@ main = do
187187
can be compiled and run, with arguments, with:
188188

189189
~~~text
190-
stack --snapshot lts-22.28 script --package acme-missiles --compile MyScript.hs -- "Don't panic!" "Duck and cover!"
190+
stack --snapshot lts-22.43 script --package acme-missiles --compile MyScript.hs -- "Don't panic!" "Duck and cover!"
191191
~~~
192192

193193
`acme-missiles-0.3` (the most recent version in the package index) will be used.
@@ -207,7 +207,7 @@ snapshot as an extra-dep. The `stack script` command is specified using Stack's
207207

208208
~~~haskell
209209
{- stack script
210-
-- snapshot lts-22.28
210+
-- snapshot lts-22.43
211211
-- extra-dep acme-missiles-0.2
212212
-- package acme-missiles
213213
-}
@@ -309,7 +309,7 @@ A Haskell source file `MyScript.hs`, as follows:
309309

310310
~~~haskell
311311
{- stack script
312-
--snapshot lts-22.28
312+
--snapshot lts-22.43
313313
-}
314314

315315
{-# LANGUAGE OverloadedStrings #-}

doc/configure/yaml/non-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ snapshots like `ghc-9.6.6`. This can be used to override the compiler for a
294294
Stackage snapshot, like this:
295295

296296
~~~yaml
297-
snapshot: lts-22.28
297+
snapshot: lts-22.43
298298
compiler: ghc-9.6.5
299299
compiler-check: match-exact
300300
~~~

doc/topics/Stack_and_VS_Code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ VS Code with the 'Haskell' extension can be configured in a number of ways:
150150

151151
Each time that a snapshot is used that references a different version of
152152
GHC, then GHCup must be used to install it (if GHCup has not already
153-
installed that version). For example, to use `snapshot: lts-22.28`
153+
installed that version). For example, to use `snapshot: lts-22.43`
154154
(GHC 9.6.6), the command `ghcup install ghc 9.6.6` must have been used
155155
to install GHC 9.6.6. That may be a minor inconvenience for some people,
156156
as one the primary benefits of Stack over other tools for building

doc/topics/custom_snapshot.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ available in snapshots to ensure reproducibility.
1818
for snapshot specification.
1919

2020
~~~yaml
21-
snapshot: lts-22.28 # Inherits GHC version and package set
21+
snapshot: lts-22.43 # Inherits GHC version and package set
2222
compiler: ghc-9.6.5 # Overwrites GHC version in the snapshot, optional
2323

2424
# Additional packages, follows extra-deps syntax
@@ -62,35 +62,35 @@ custom snapshot, due to Stack sharing snapshot packages whenever possible.
6262

6363
### Overriding the compiler
6464

65-
The following snapshot specification will be identical to `lts-22.28`, but
65+
The following snapshot specification will be identical to `lts-22.43`, but
6666
instead use `ghc-9.6.5` instead of `ghc-9.6.6`:
6767

6868
~~~yaml
69-
snapshot: lts-22.28
69+
snapshot: lts-22.43
7070
compiler: ghc-9.6.5
7171
~~~
7272

7373
### Dropping packages
7474

75-
The following snapshot specification will be identical to `lts-22.28`, but
75+
The following snapshot specification will be identical to `lts-22.43`, but
7676
without the `text` package in our snapshot. Removing this package will cause all
7777
the packages that depend on `text` to be unbuildable, but they will still be
7878
present in the snapshot.
7979

8080
~~~yaml
81-
snapshot: lts-22.28
81+
snapshot: lts-22.43
8282
drop-packages:
8383
- text
8484
~~~
8585

8686
### Hiding packages
8787

88-
The following snapshot specification will be identical to `lts-22.28`, but the
88+
The following snapshot specification will be identical to `lts-22.43`, but the
8989
`text` package will be hidden when registering. This will affect, for example,
9090
the import parser in the script command.
9191

9292
~~~yaml
93-
snapshot: lts-22.28
93+
snapshot: lts-22.43
9494
hidden:
9595
- text
9696
~~~
@@ -101,11 +101,11 @@ In order to specify GHC options for a package, you use the same syntax as the
101101
[ghc-options](../configure/yaml/non-project.md#ghc-options) key for build
102102
configuration.
103103

104-
The following snapshot specification will be identical to `lts-22.28`, but
104+
The following snapshot specification will be identical to `lts-22.43`, but
105105
provides `-O1` as a ghc-option for `text`:
106106

107107
~~~yaml
108-
snapshot: lts-22.28
108+
snapshot: lts-22.43
109109
packages:
110110
- text-2.0.2
111111
ghc-options:
@@ -124,11 +124,11 @@ packages in the `packages` list, rather than all packages in the snapshot.
124124

125125
In order to specify Cabal flags for a package, you use the same syntax as the
126126
[flags](../configure/yaml/project.md#flags) key for build configuration. The
127-
following snapshot specification will be identical to `lts-22.28`, but
127+
following snapshot specification will be identical to `lts-22.43`, but
128128
it enables the `developer` Cabal flag:
129129

130130
~~~yaml
131-
snapshot: lts-22.28
131+
snapshot: lts-22.43
132132
packages:
133133
- text-2.0.2
134134
flags:

doc/topics/haskell_and_c_code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ executables:
8383

8484
The project's `stack.yaml` file only needs to identify a snapshot:
8585
~~~yaml
86-
snapshot: lts-22.28 # GHC 9.6.6
86+
snapshot: lts-22.43 # GHC 9.6.6
8787
~~~
8888

8989
This example project can be built with Stack in the normal way (`stack build`),
@@ -220,7 +220,7 @@ The `include-dirs` key will cause the specified directory (again,
220220

221221
The project's `stack.yaml` file only needs to identify a snapshot:
222222
~~~yaml
223-
snapshot: lts-22.28 # GHC 9.6.6
223+
snapshot: lts-22.43 # GHC 9.6.6
224224
~~~
225225

226226
This example project can be built with Stack in the normal way (`stack build`),

doc/topics/scripts.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ An example will be easiest to understand. Consider the Haskell source file
1919

2020
~~~haskell
2121
#!/usr/bin/env stack
22-
-- stack script --snapshot lts-22.28 --package turtle
22+
-- stack script --snapshot lts-22.43 --package turtle
2323
{-# LANGUAGE OverloadedStrings #-}
2424
import Turtle (echo)
2525
main = echo "Hello World!"
@@ -78,11 +78,11 @@ able to reuse everything already built).
7878

7979
The second line of the source code is the Stack interpreter options comment. In
8080
this example, it specifies the [`stack script`](../commands/script_command.md)
81-
command with the options of a LTS Haskell 22.28 snapshot
82-
(`--snapshot lts-22.28`) and ensuring the
81+
command with the options of a LTS Haskell 22.43 snapshot
82+
(`--snapshot lts-22.43`) and ensuring the
8383
[`turtle`](https://hackage.haskell.org/package/turtle) package is available
8484
(`--package turtle`). The version of the package will be that in the specified
85-
snapshot (`lts-22.28` provides `turtle-1.6.2`).
85+
snapshot (`lts-22.43` provides `turtle-1.6.2`).
8686

8787
## Arguments and interpreter options and arguments
8888

@@ -117,7 +117,7 @@ For example, the command `stack MyScript.hs arg1 arg2` with `MyScript.hs`:
117117
~~~haskell
118118
#!/usr/bin/env stack
119119
{- stack script
120-
--snapshot lts-22.28
120+
--snapshot lts-22.43
121121
--
122122
+RTS -s -RTS
123123
-}
@@ -133,7 +133,7 @@ main = do
133133
is equivalent to the following command at the command line:
134134

135135
~~~text
136-
stack script --snapshot lts-22.28 -- MyScript.hs arg1 arg2 +RTS -s -RTS
136+
stack script --snapshot lts-22.43 -- MyScript.hs arg1 arg2 +RTS -s -RTS
137137
~~~
138138

139139
where `+RTS -s -RTS` are some of GHC's
@@ -162,7 +162,7 @@ options, or by providing a comma or space separated list. For example:
162162
~~~haskell
163163
#!/usr/bin/env stack
164164
{- stack script
165-
--snapshot lts-22.28
165+
--snapshot lts-22.43
166166
--package turtle
167167
--package "stm async"
168168
--package http-client,http-conduit
@@ -207,7 +207,7 @@ which makes use of the joke package
207207

208208
~~~haskell
209209
{- stack script
210-
--snapshot lts-22.28
210+
--snapshot lts-22.43
211211
--package acme-missiles
212212
-}
213213
import Acme.Missiles (launchMissiles)
@@ -218,7 +218,7 @@ main = launchMissiles
218218

219219
The command `stack --script-no-run-compile Script.hs` then behaves as if the
220220
command
221-
`stack script --snapshot lts-22.28 --package acme-missiles --no-run --compile -- Script.hs`
221+
`stack script --snapshot lts-22.43 --package acme-missiles --no-run --compile -- Script.hs`
222222
had been given. `Script.hs` is compiled (without optimisation) and the resulting
223223
executable is not run: no missiles are launched in the process!
224224

@@ -260,7 +260,7 @@ those curious, here is an example with
260260
{- stack
261261
runghc
262262
--install-ghc
263-
--snapshot lts-22.28
263+
--snapshot lts-22.43
264264
--package base
265265
--package turtle
266266
--
@@ -284,7 +284,7 @@ it. Here is an example:
284284
{- stack
285285
exec ghci
286286
--install-ghc
287-
--snapshot lts-22.28
287+
--snapshot lts-22.43
288288
--package turtle
289289
-}
290290
~~~

doc/topics/stack_yaml_vs_cabal_package_file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ requires that you have chosen a specific version for each package available.
6464

6565
The most common means by which this set of packages is defined is via a
6666
snapshot provided by Stackage. For example, if you go to the page
67-
<https://www.stackage.org/lts-22.28>, you will see a list of 3,373 packages at
68-
specific version numbers. When you then specify `snapshot: lts-22.28` or,
69-
alternatively, `resolver: lts-22.28`, you're telling Stack to use those package
67+
<https://www.stackage.org/lts-22.43>, you will see a list of 3,378 packages at
68+
specific version numbers. When you then specify `snapshot: lts-22.43` or,
69+
alternatively, `resolver: lts-22.43`, you're telling Stack to use those package
7070
versions in resolving dependencies down to specific versions of packages.
7171

7272
Sometimes a snapshot doesn't have all of the packages that you want. Or you want

0 commit comments

Comments
 (0)