Skip to content

Commit d81b57e

Browse files
committed
Improve snapshot documentation
1 parent 3e5c270 commit d81b57e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/global_flags.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,12 @@ At the command line (only):
227227
* `--snapshot lts-<major_version>` specifies the latest Stackage LTS Haskell
228228
snapshot with the specified major version;
229229
* `--snapshot lts` specifies, from those with the greatest major version, the
230-
latest Stackage LTS Haskell snapshot; and
231-
* `--snapshot nightly` specifies the most recent Stackage Nightly snapshot.
230+
latest Stackage LTS Haskell snapshot;
231+
* `--snapshot nightly` specifies the most recent Stackage Nightly snapshot;
232+
and
233+
* `--snapshot global` specifies the snapshot specified by the project-level
234+
configuration file in the `global-project` directory in the
235+
[Stack root](stack_root.md#global-project-directory).
232236

233237
## `--stack-colors` or `--stack-colours` options
234238

doc/yaml_configuration.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ Each of these snapshots will also determine what constraints are placed on the
116116
compiler version. See the [compiler-check](#compiler-check) option for some
117117
additional control over compiler version.
118118

119-
The `snapshot` key specifies a snapshot location. For further information, see
120-
the [snapshot and package location](pantry.md) documentation.
121-
122119
### resolver
123120

124121
`resolver` and [`snapshot`](#snapshot) are synonyms. Only one of these keys is

0 commit comments

Comments
 (0)