Skip to content

Commit 111f6c7

Browse files
committed
Release preparation: Bump references in documentation
1 parent c4aab08 commit 111f6c7

15 files changed

+84
-82
lines changed

doc/GUIDE.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ this:
248248

249249
~~~yaml
250250
resolver:
251-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/28.yaml
251+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/19.yaml
252252
packages:
253253
- .
254254
~~~
255255

256256
The value of the `resolver` key tells Stack *how* to build your package: which
257257
GHC version to use, versions of package dependencies, and so on. Our value here
258-
says to use [LTS Haskell 19.28](https://www.stackage.org/lts-19.28), which
259-
implies GHC 9.0.2 (which is why `stack build` installs that version of GHC if it
258+
says to use [LTS Haskell 20.19](https://www.stackage.org/lts-20.19), which
259+
implies GHC 9.2.7 (which is why `stack build` installs that version of GHC if it
260260
is not already available to Stack). There are a number of values you can use for
261261
`resolver`, which we'll cover later.
262262

@@ -503,7 +503,7 @@ also known as *snapshots*. We mentioned the LTS resolvers, and you can get quite
503503
a bit of information about it at
504504
[https://www.stackage.org/lts](https://www.stackage.org/lts), including:
505505

506-
* The appropriate resolver value (`resolver: lts-20.4`, as is currently the
506+
* The appropriate resolver value (`resolver: lts-20.19`, as is currently the
507507
latest LTS)
508508
* The GHC version used
509509
* A full list of all packages available in this snapshot
@@ -522,16 +522,16 @@ towards by default as well).
522522

523523
## Resolvers and changing your compiler version
524524

525-
Let's explore package sets a bit further. Instead of lts-19.17, let's change our
526-
`stack.yaml` file to use the [latest nightly](https://www.stackage.org/nightly).
527-
Right now, this is currently 2022-12-16 - please see the resolver from the link
528-
above to get the latest.
525+
Let's explore package sets a bit further. Instead of `lts-20.19`, let's change
526+
our `stack.yaml` file to use the
527+
[latest nightly](https://www.stackage.org/nightly). Right now, this is currently
528+
2023-05-05 - please see the resolver from the link above to get the latest.
529529

530530
Then, commanding `stack build` again will produce:
531531

532532
~~~text
533533
stack build
534-
# Downloaded nightly-2022-12-16 build plan.
534+
# Downloaded nightly-2023-05-05 build plan.
535535
# build output ...
536536
~~~
537537

@@ -546,8 +546,8 @@ stack --resolver lts-18.28 build
546546

547547
When passed on the command line, you also get some additional "short-cut"
548548
versions of resolvers: `--resolver nightly` will use the newest Nightly resolver
549-
available, `--resolver lts` will use the newest LTS, and `--resolver lts-19`
550-
will use the newest LTS in the 19.x series. The reason these are only available
549+
available, `--resolver lts` will use the newest LTS, and `--resolver lts-20`
550+
will use the newest LTS in the 20.x series. The reason these are only available
551551
on the command line and not in your `stack.yaml` file is that using them:
552552

553553
1. Will slow down your build (since Stack then needs to download information on
@@ -557,11 +557,11 @@ on the command line and not in your `stack.yaml` file is that using them:
557557

558558
### Changing GHC versions
559559

560-
Finally, let's try using an older LTS snapshot. We'll use the newest 18.x
560+
Finally, let's try using an older LTS snapshot. We'll use the newest 19.x
561561
snapshot with the command:
562562

563563
~~~text
564-
stack --resolver lts-18 build
564+
stack --resolver lts-19 build
565565
# build output ...
566566
~~~
567567

@@ -1340,7 +1340,7 @@ yields output like:
13401340

13411341
~~~text
13421342
Run from outside a project, using implicit global project config
1343-
Using latest snapshot resolver: lts-18.3
1343+
Using latest snapshot resolver: lts-20.19
13441344
Writing global (non-project-specific) config file to: /home/michael/.stack/global/stack.yaml
13451345
Note: You can change the snapshot via the resolver field there.
13461346
I installed the stm package via --package stm

doc/Stack_and_VS_Code.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ enabled). For further information about these options, see the `install-ghc`
7575

7676
For this workaround to work, each time that a resolver is used that references a
7777
different version of GHC, then GHCup must be used to install it (if GHCup has
78-
not already installed that version). For example, to use `resolver: lts-19.16`
79-
(GHC 9.0.2), the command `ghcup install ghc 9.0.2` must have been used to
80-
install GHC 9.0.2. That may be a minor inconvenience for some people, as one the
78+
not already installed that version). For example, to use `resolver: lts-20.19`
79+
(GHC 9.2.7), the command `ghcup install ghc 9.2.7` must have been used to
80+
install GHC 9.2.7. That may be a minor inconvenience for some people, as one the
8181
primary benefits of Stack over other Haskell build tools has been that Stack
8282
automatically ensures that the necessary version of GHC is available.
8383

doc/build_command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ expressions, and generate a backtrace on exception.
414414

415415
### `--PROG-option` options
416416

417-
:octicons-tag-24: UNRELEASED
417+
[:octicons-tag-24: 2.11.1](https://github.com/commercialhaskell/stack/releases/tag/v2.11.1)
418418

419419
`PROG` is a program recognised by Cabal (the library) and one of `alex`, `ar`,
420420
`c2hs`, `cpphs`, `gcc`, `greencard`, `happy`, `hsc2hs`, `hscolour`, `ld`,

doc/config_command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ stack config set resolver SNAPSHOT
8585
project-level configuration file (`stack.yaml`).
8686

8787
A snapshot of `lts` or `nightly` will be translated into the most recent
88-
available. A snapshot of `lts-19` will be translated into the most recent
89-
available in the `lts-19` sequence.
88+
available. A snapshot of `lts-20` will be translated into the most recent
89+
available in the `lts-20` sequence.
9090

9191
Known bug:
9292

doc/custom_snapshot.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ available in snapshots to ensure reproducibility.
1717
snapshot specification.
1818

1919
~~~yaml
20-
resolver: lts-8.21 # Inherits GHC version and package set
21-
compiler: ghc-8.0.1 # Overwrites GHC version in the resolver, optional
20+
resolver: lts-20.19 # Inherits GHC version and package set
21+
compiler: ghc-9.6.1 # Overwrites GHC version in the resolver, optional
2222

2323
# Additional packages, follows extra-deps syntax
2424
packages:
@@ -61,51 +61,51 @@ custom snapshot, due to Stack sharing snapshot packages whenever possible.
6161

6262
### Overriding the compiler
6363

64-
The following snapshot specification will be identical to `lts-7.1`, but instead
65-
use `ghc-7.10.3` instead of `ghc-8.0.1`:
64+
The following snapshot specification will be identical to `lts-20.19`, but instead
65+
use `ghc-9.2.6` instead of `ghc-9.2.7`:
6666

6767
~~~yaml
68-
resolver: lts-7.1
69-
compiler: ghc-7.10.3
68+
resolver: lts-20.19
69+
compiler: ghc-9.2.6
7070
~~~
7171

7272
### Dropping packages
7373

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

7979
~~~yaml
80-
resolver: lts-7.1
80+
resolver: lts-20.19
8181
drop-packages:
82-
- text
82+
- text
8383
~~~
8484

8585
### Hiding packages
8686

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

9191
~~~yaml
92-
resolver: lts-7.1
92+
resolver: lts-20.19
9393
hidden:
94-
- text
94+
- text
9595
~~~
9696

9797
### Specifying GHC options
9898

9999
In order to specify GHC options for a package, you use the same syntax as the
100100
[ghc-options](yaml_configuration.md#ghc-options) key for build configuration.
101101

102-
The following snapshot specification will be identical to `lts-7.1`, but
102+
The following snapshot specification will be identical to `lts-20.19`, but
103103
provides `-O1` as a ghc-option for `text`:
104104

105105
~~~yaml
106-
resolver: lts-7.1
106+
resolver: lts-20.19
107107
packages:
108-
- text-1.2.2.1
108+
- text-1.2.5.0
109109
ghc-options:
110110
text: -O1
111111
~~~
@@ -122,13 +122,13 @@ packages in the `packages` list, rather than all packages in the snapshot.
122122

123123
In order to specify Cabal flags for a package, you use the same syntax as the
124124
[flags](yaml_configuration.md#flags) key for build configuration. The
125-
following snapshot specification will be identical to `lts-7.1`, but
125+
following snapshot specification will be identical to `lts-20.19`, but
126126
it enables the `developer` Cabal flag:
127127

128128
~~~yaml
129-
resolver: lts-7.1
129+
resolver: lts-20.19
130130
packages:
131-
- text-1.2.2.1
131+
- text-1.2.5.0
132132
flags:
133133
text:
134134
developer: true

doc/environment_variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ behaves.
77

88
## `GH_TOKEN` or `GITHUB_TOKEN`
99

10-
:octicons-tag-24: UNRELEASED
10+
[:octicons-tag-24: 2.11.1](https://github.com/commercialhaskell/stack/releases/tag/v2.11.1)
1111

1212
Stack will use the value of the `GH_TOKEN` or, in the alternative,
1313
`GITHUB_TOKEN` environment variable (if not an empty string) as credentials to

doc/faq.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ here is to be as helpful and concise as possible.
99
## What version of GHC is used when I run something like `stack ghci`?
1010

1111
The version of GHC, as well as which packages can be installed, are specified by
12-
the _resolver_. This may be something like `lts-19.19`, which is from
12+
the _resolver_. This may be something like `lts-20.19`, which is from
1313
[Stackage](https://www.stackage.org/). The [user's guide](GUIDE.md) discusses
1414
the resolver in more detail.
1515

@@ -76,11 +76,11 @@ You can make tweaks to a snapshot by modifying the `extra-deps` configuration
7676
value in your `stack.yaml` file, e.g.:
7777

7878
~~~yaml
79-
resolver: lts-19.19
79+
resolver: lts-20.19
8080
packages:
81-
- '.'
81+
- .
8282
extra-deps:
83-
- text-2.0.1
83+
- text-2.0.2
8484
~~~
8585

8686
## I need to use a package (or version of a package) that is not available on Hackage, what should I do?
@@ -91,9 +91,9 @@ Add it to the
9191
directory where your `stack.yaml` file lives, e.g.
9292

9393
~~~yaml
94-
resolver: lts-19.19
94+
resolver: lts-20.19
9595
packages:
96-
- '.'
96+
- .
9797
extra-deps:
9898
- third-party/proprietary-dep
9999
- github-version-of/conduit

doc/list_command.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,45 @@ Hackage. If the package name cannot be found on Hackage, even after updating the
1313
package index, suggestions (not necessarily good ones) will be made about the
1414
intended package name.
1515

16-
`stack --resolver <snapshot> <package_name>` will list the version of the
16+
`stack --resolver <snapshot> list <package_name>` will list the version of the
1717
package in the specified snapshot, unless the package comes with GHC on
1818
Unix-like operating systems. If the package name cannot be found in the
1919
snapshot, the command will fail, identifying only the package(s) that did not
2020
appear in the snapshot.
2121

2222
More than one package name can be specified.
2323

24-
`stack --resolver <snapshot>` will list all the packages in the specified
24+
`stack --resolver <snapshot> list` will list all the packages in the specified
2525
snapshot, except those which come with GHC on Unix-like operating systems.
2626

2727
For example:
2828

2929
~~~text
3030
stack list base unix Win32 acme-missiles pantry
31-
base-4.17.0.0
32-
unix-2.8.0.0
33-
Win32-2.13.3.0
31+
base-4.18.0.0
32+
unix-2.8.1.1
33+
Win32-2.13.4.0
3434
acme-missiles-0.3
35-
pantry-0.5.7
35+
pantry-0.8.1
3636
3737
stack list paltry
3838
Could not find package paltry, updating
3939
...
4040
Package index cache populated
41-
- Could not find package paltry on Hackage. Perhaps you meant: pretty, pasty, xattr, alloy, para, pappy, alure, polar, factory, pastis
41+
Error: [S-4926]
42+
- Could not find package paltry on Hackage. Perhaps you meant: retry, path, pantry, pretty, pasty, xattr, alloy, para, pappy, alure
4243
43-
stack --resolver lts-19.25 base unix Win32 acme-missiles pantry
44+
stack --resolver lts-20.19 list base unix Win32 acme-missiles pantry
45+
Error: [S-4926]
4446
- Package does not appear in snapshot: base
4547
- Package does not appear in snapshot: unix
4648
- Package does not appear in snapshot: acme-missiles
4749
48-
stack --resolver lts-19.25 Win32 pantry
50+
stack --resolver lts-20.19 list Win32 pantry
4951
Win32-2.12.0.1
5052
pantry-0.5.7
5153
52-
stack --resolver lts-19.25
54+
stack --resolver lts-20.19 list
5355
AC-Angle-1.0
5456
ALUT-2.4.0.3
5557
...

doc/maintainers/stack_errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
In connection with considering Stack's support of the
66
[Haskell Error Index](https://errors.haskell.org/) initiative, this page seeks
77
to take stock of the errors that Stack itself can raise, by reference to the
8-
`master` branch of the Stack repository. Last updated: 2023-04-30.
8+
`master` branch of the Stack repository. Last updated: 2023-05-05.
99

1010
* `Main.main`: catches exceptions from action `commandLineHandler`.
1111

doc/script_command.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ configuration files (global and project-level). A snapshot must be specified on
1818
the command line (with the `--resolver` option). For example:
1919

2020
~~~text
21-
stack --resolver lts-20.4 MyScript.hs
21+
stack --resolver lts-20.19 MyScript.hs
2222
~~~
2323

2424
or, equivalently:
2525

2626
~~~text
27-
stack script --resolver lts-20.4 MyScript.hs
27+
stack script --resolver lts-20.19 MyScript.hs
2828
~~~
2929

3030
The `stack script` command behaves as if the `--install-ghc` flag had been
@@ -82,7 +82,7 @@ main = do
8282
can be compiled and run, with arguments, with:
8383

8484
~~~text
85-
stack --resolver lts-20.4 script --package acme-missiles --compile MyScript.hs -- "Don't panic!" "Duck and cover!"
85+
stack --resolver lts-20.19 script --package acme-missiles --compile MyScript.hs -- "Don't panic!" "Duck and cover!"
8686
~~~
8787

8888
All the compilation outputs (like `Main.hi`, `Main.o`, and the executable

0 commit comments

Comments
 (0)