Skip to content

Commit 59f3e81

Browse files
committed
Acknowledge that stack.yaml is only the default name for the file
1 parent 5201289 commit 59f3e81

14 files changed

+49
-47
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ The `pedantic` job runs on `ubuntu` only and builds Stack with the
549549
`--pedantic` flag.
550550

551551
The `unit-tests` job runs on a matrix of operating systems and Stack
552-
project-level YAML configuration files (`stack.yaml`). It builds and tests Stack
553-
with the following flags: `--haddock --no-haddock-deps`.
552+
project-level YAML configuration files (`stack.yaml`, by default). It builds and
553+
tests Stack with the following flags: `--haddock --no-haddock-deps`.
554554

555555
Its approach to creating a cache depends on the operating system. Its 'Cache
556556
dependencies on Unix-like OS' step caches the Stack root on Unix-like operating

doc/GUIDE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1424,10 +1424,10 @@ Cabal (the tool), and NixOS. In that sense, we're sharing the same ecosystem.
14241424
### Curation vs dependency solving
14251425

14261426
* Stack uses 'curation' (snapshots and Stack's project-level configuration file
1427-
(`stack.yaml`) define precisely the set of packages available for a project).
1428-
The Stack team firmly believes that the majority of users want to simply
1429-
ignore dependency resolution nightmares and get a valid build plan from day
1430-
one. That's why we've made 'curation' the focus of Stack.
1427+
(`stack.yaml`, by default) define precisely the set of packages available for
1428+
a project). The Stack team firmly believes that the majority of users want to
1429+
simply ignore dependency resolution nightmares and get a valid build plan from
1430+
day one. That's why we've made 'curation' the focus of Stack.
14311431

14321432
* Cabal (the tool) can use 'curation' too but its origins are in dependency
14331433
solving.

doc/azure_ci.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ But we only use the first method of using Stack to download GHC.
131131
### Multiple GHC - parametrised builds
132132

133133
For different GHC versions, you probably want to use different project-level
134-
configuration files (`stack.yaml`). If you don't want to put a specific
135-
`stack.yaml` for a particular snapshot and still want to test it, you have
136-
specify your snapshot argument in `ARGS` environment variable (you will see an
137-
example below).
134+
configuration files (`stack.yaml`, by default). If you don't want to put a
135+
specific `stack.yaml` for a particular snapshot and still want to test it, you
136+
have specify your snapshot argument in `ARGS` environment variable (you will see
137+
an example below).
138138

139139
~~~yaml
140140
strategy:

doc/build_command.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This ability to specify a component applies only to a project package. With
6767
dependencies, Stack will *always* build the library (if present) and all
6868
executables (if any), and ignore test suites and benchmarks. If you want more
6969
control over a package, you must add it to your `packages` setting in your
70-
project-level configuration file (`stack.yaml`).
70+
project-level configuration file (`stack.yaml`, by default).
7171

7272
## Target syntax
7373

@@ -813,7 +813,7 @@ Examples:
813813
index into a local project directory named after the package identifier (for
814814
further infomation, see the [`stack unpack` command](unpack_command.md)
815815
documentation) and, if the package does not provide its own Stack
816-
configuration file (`stack.yaml`), to attempt to initialise that
816+
configuration file (`stack.yaml`, by default), to attempt to initialise that
817817
configuration (for further information, see the
818818
[`stack init` command](init_command.md) documentation). For example:
819819

doc/config_command.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ stack config set install-ghc [--global] true|false
6060

6161
`stack config set install-ghc true` or `false` sets the `install-ghc` key in a
6262
YAML configuration file, accordingly. By default, the project-level
63-
configuration file (`stack.yaml`) is altered. The `--global` flag specifies the
64-
user-specific global configuration file (`config.yaml`).
63+
configuration file (`stack.yaml`, by default) is altered. The `--global` flag
64+
specifies the user-specific global configuration file (`config.yaml`).
6565

6666
## The `stack config set package-index download-prefix` command
6767

@@ -73,9 +73,9 @@ stack config set package-index download-prefix [--global] [URL]
7373

7474
`stack config set package-index download-prefix <url>` sets the
7575
`download-prefix` key of the `package-index` key in a YAML configuration file,
76-
accordingly. By default, the project-level configuration file (`stack.yaml`) is
77-
altered. The `--global` flag specifies the user-specific global configuration
78-
file (`config.yaml`).
76+
accordingly. By default, the project-level configuration file (`stack.yaml`, by
77+
default) is altered. The `--global` flag specifies the user-specific global
78+
configuration file (`config.yaml`).
7979

8080
## The `stack config set resolver` command
8181

@@ -84,7 +84,7 @@ stack config set resolver SNAPSHOT
8484
~~~
8585

8686
`stack config set resolver <snapshot>` sets the `resolver` key in the
87-
project-level configuration file (`stack.yaml`).
87+
project-level configuration file (`stack.yaml`, by default).
8888

8989
A snapshot of `lts` or `nightly` will be translated into the most recent
9090
available. A snapshot of `lts-22` will be translated into the most recent
@@ -103,7 +103,7 @@ stack config set snapshot SNAPSHOT
103103
~~~
104104

105105
`stack config set snapshot <snapshot>` sets the `snapshot` key in the
106-
project-level configuration file (`stack.yaml`).
106+
project-level configuration file (`stack.yaml`, by default).
107107

108108
A snapshot of `lts` or `nightly` will be translated into the most recent
109109
available. A snapshot of `lts-22` will be translated into the most recent
@@ -121,5 +121,5 @@ stack config set system-ghc [--global] true|false
121121

122122
`stack config set system-ghc true` or `false` sets the `system-ghc` key in a
123123
YAML configuration file, accordingly. By default, the project-level
124-
configuration file (`stack.yaml`) is altered. The `--global` flag specifies the
125-
user-specific global configuration file (`config.yaml`).
124+
configuration file (`stack.yaml`, by default) is altered. The `--global` flag
125+
specifies the user-specific global configuration file (`config.yaml`).

doc/dev_containers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ development environment.
99

1010
Stack provides the following Dev Containers:
1111

12-
* a default Dev Container, intended for use with Stack's project‑level
13-
configuration (`stack.yaml`); and
12+
* a default Dev Container, intended for use with Stack's default project‑level
13+
configuration file (`stack.yaml`); and
1414
* alternative Dev Containers, intended for use with Stack's experimental
1515
project‑level configurations (in anticipation of building Stack with more
1616
recent versions of GHC).

doc/faq.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ the _snapshot_. This may be something like `lts-22.7`, which is from
1414
the snapshot in more detail.
1515

1616
The snapshot is determined by finding the relevant project-level configuration
17-
file (`stack.yaml`) for the directory you're running the command from. This
18-
essentially works by:
17+
file (`stack.yaml`, by default) for the directory you're running the command
18+
from. This essentially works by:
1919

2020
1. Check for a `STACK_YAML` environment variable or the `--stack-yaml`
2121
command line argument
@@ -298,8 +298,8 @@ of those three. Updating the index will have no impact on Stack's behavior.
298298

299299
## I have a custom package index I'd like to use, how do I do so?
300300

301-
You can configure this in your project-level configuration file (`stack.yaml`).
302-
See [YAML configuration](yaml_configuration.md).
301+
You can configure this in your project-level configuration file (`stack.yaml`,
302+
by default). See [YAML configuration](yaml_configuration.md).
303303

304304
## How can I make sure my project builds against multiple GHC versions?
305305

doc/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following terms are used in Stack's documentation.
4141
|`package.yaml` |A file that describes a package in the Hpack format. |
4242
|Pantry |A library for content-addressable Haskell package management, provided by the [`pantry` package](https://hackage.haskell.org/package/pantry). A dependency of Stack.|
4343
|PATH |The `PATH` environment variable, specifying a list of directories searched for executable files.|
44-
|project |A Stack project is a local directory that contains a project-level configuration file (`stack.yaml`). A project may relate to more than one project package.|
44+
|project |A Stack project is a local directory that contains a project-level configuration file (`stack.yaml`, by default). A project may relate to more than one project package.|
4545
|project package |A Haskell package that is part of a project and located locally. Distinct from a dependency located locally.|
4646
|PVP |The Haskell [Package Versioning Policy](https://pvp.haskell.org/), which tells developers of libraries how to set their version numbers.|
4747
|REPL |An interactive (run-eval-print loop) programming environment.|

doc/init_command.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
stack init [DIR(S)] [--omit-packages] [--force] [--ignore-subdirs]
77
~~~
88

9-
`stack init` initialises Stack's project-level YAML configuration file
9+
`stack init` initialises Stack's default project-level YAML configuration file
1010
(`stack.yaml`) for an existing project, based on the Cabal file or
1111
`package.yaml` file for each of its packages.
1212

doc/lock_files.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ they are created and updated.
3939
## stack.yaml and snapshot files
4040

4141
Relevant to this discussion, Stack's project-level configuration file
42-
(`stack.yaml`) specifies:
42+
(`stack.yaml`, by default) specifies:
4343

4444
* the parent snapshot (the [`snapshot`](yaml_configuration.md#snapshot) or
4545
[`resolver`](yaml_configuration.md#resolver) key)
@@ -148,9 +148,9 @@ packages:
148148

149149
## Creation procedure
150150

151-
Whenever a project-level configuration file (`stack.yaml`) is loaded, Stack
152-
checks for a lock file in the same file path, with a `.lock` extension added.
153-
For example, if you command:
151+
Whenever a project-level configuration file (`stack.yaml`, by default) is
152+
loaded, Stack checks for a lock file in the same file path, with a `.lock`
153+
extension added. For example, if you command:
154154

155155
~~~text
156156
stack --stack-yaml my-stack.yaml build
@@ -177,9 +177,9 @@ created by:
177177

178178
## Update procedure
179179

180-
Whenever a project-level configuration file (`stack.yaml`) is loaded, all
181-
completed package or snapshot locations (even those completed using information
182-
from a lock file) get collected to form a new lock file in memory. Subject to
183-
Stack's [`--lock-file`](global_flags.md#-lock-file-option) option, that new lock
184-
file is compared against the one on disk and, if there are any differences,
185-
written out to the disk.
180+
Whenever a project-level configuration file (`stack.yaml`, by default) is
181+
loaded, all completed package or snapshot locations (even those completed using
182+
information from a lock file) get collected to form a new lock file in memory.
183+
Subject to Stack's [`--lock-file`](global_flags.md#-lock-file-option) option,
184+
that new lock file is compared against the one on disk and, if there are any
185+
differences, written out to the disk.

doc/nix_integration.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Stack expects the `shell.nix` file to define a function of with one argument
311311
called `ghc` (arguments are not positional), which you should give to
312312
function `buildStackProject`. This argument is a GHC Nix package in the
313313
version as defined in the snapshot you set in Stack's project-level
314-
configuration file (`stack.yaml`).
314+
configuration file (`stack.yaml`, by default).
315315

316316
### Pure and impure Nix shells
317317

@@ -377,7 +377,8 @@ set.
377377

378378
Below is a summary of the non-project specific configuration options and their
379379
default values. The options can be set in Stack's project-level configuration
380-
file (`stack.yaml`) or its global configuration file (`config.yaml`).
380+
file (`stack.yaml`, by default) or its global configuration file
381+
(`config.yaml`).
381382

382383
~~~yaml
383384
nix:

doc/nonstandard_project_init.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# Non-standard project initialization
44

55
You may need to configure Stack to work with an existing project that has one or
6-
more Cabal files but no Stack project-level configuration file (`stack.yaml`).
6+
more Cabal files but no Stack project-level configuration file (`stack.yaml`, by
7+
default).
78

89
## The `stack init` command
910

doc/path_command.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pass the following flags for information about specific files or locations:
2222
|--compiler-bin |The directory containing the GHC executable. |
2323
|--compiler-exe |The GHC executable. |
2424
|--compiler-tools-bin |The directory containing binaries specific to a particular compiler.|
25-
|--config-location |Stack's project-level YAML configuration file (`stack.yaml`).|
25+
|--config-location |Stack's project-level YAML configuration file (`stack.yaml`, by default).|
2626
|--dist-dir |The dist work directory, relative to the package directory.|
2727
|--extra-include-dirs |Extra include directories. |
2828
|--extra-library-dirs |Extra library directories. |

doc/yaml_configuration.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ be customised by the use of scripts.
1414
or dependency located locally.
1515

1616
A Stack project is a local directory that contains a Stack project-level
17-
configuration file (`stack.yaml`). A project may relate to more than one
18-
project package. A single-package project's directory will usually also be
19-
the project package's root directory.
17+
configuration file (`stack.yaml`, by default). A project may relate to more
18+
than one project package. A single-package project's directory will usually
19+
also be the project package's root directory.
2020

2121
## YAML configuration
2222

@@ -405,7 +405,7 @@ curator:
405405
## Non-project-specific configuration
406406

407407
Non-project configuration options can be included in a project-level
408-
configuration file (`stack.yaml`) or in global configuration files
408+
configuration file (`stack.yaml`, by default) or in global configuration files
409409
(`config.yaml`). However, non-project-specific options in the project-level
410410
configuration file in the `global-project` directory are ignored by Stack. The
411411
options below are listed in alphabetic order.

0 commit comments

Comments
 (0)