Skip to content

Commit 1076199

Browse files
committed
Merge branch 'stable'
2 parents 59f0b2f + 53d1795 commit 1076199

24 files changed

+122
-118
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ The `pedantic` job runs on `ubuntu` only and builds Stack with the
605605
`--pedantic` flag.
606606

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

611611
Its approach to creating a cache depends on the operating system. Its 'Cache

doc/commands/build_command.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -739,26 +739,27 @@ The effect of `--fast` can be overriden with Stack's
739739
options are used during the configure step of the Cabal build process; see
740740
Stack's
741741
[`configure-options`](../configure/yaml/non-project.md#configure-options)
742-
YAML configuration option.
742+
non-project specific configuration option.
743743

744744
### `--ghc-options` option
745745

746746
GHC command line options can be specified for a package in its Cabal file
747747
(including one created from a `package.yaml` file). This option augments and, if
748748
applicable (see below), overrides any such GHC command line options and those
749-
specified in Stack's YAML configuration files - see the
750-
[`ghc-options`](../configure/yaml/non-project.md#ghc-options) configuration
751-
option.
749+
specified in Stack's configuration files - see the
750+
[`ghc-options`](../configure/yaml/non-project.md#ghc-options) non-project
751+
specific configuration option.
752752

753753
`stack build --ghc-options <ghc_options>` passes the specified command line
754754
options to GHC, depending on Stack's
755-
[`apply-ghc-options`](../configure/yaml/non-project.md#apply-ghc-options) YAML
756-
configuration option. This option can be specified multiple times.
755+
[`apply-ghc-options`](../configure/yaml/non-project.md#apply-ghc-options)
756+
non-project specific configuration option. This option can be specified multiple
757+
times.
757758

758759
GHC's command line options are _order-dependent_ and evaluated from left to
759760
right. Later options can override the effect of earlier ones. Any GHC command
760761
line options for a package specified at Stack's command line are applied after
761-
those specified in Stack's YAML configuration files.
762+
those specified in Stack's configuration files.
762763

763764
### `--[no-]library-profiling` flag
764765

@@ -972,9 +973,9 @@ package is targetted in a multi-package project (for example, using
972973
contents of the log files to the standard error output stream of the console
973974
at the end of the build, use Stack's `dump-logs` option. For further
974975
information about that option, see the
975-
[YAML configuration](../configure/yaml/non-project.md#dump-logs)
976-
documentation. The default `dump-logs` mode is to output the contents of any
977-
log files that include GHC warnings.
976+
[`dump-logs](../configure/yaml/non-project.md#dump-logs) non-project
977+
specific configuration option documentation. The default `dump-logs` mode is
978+
to output the contents of any log files that include GHC warnings.
978979

979980
### `--[no]-open` flag
980981

@@ -1028,8 +1029,7 @@ All the following examples assume that:
10281029
consequently, the project-level configuration will be determined by a
10291030
`stack.yaml` file in the `global-project` directory in the
10301031
[Stack root](../topics/stack_root.md) (for further information, see the
1031-
[YAML configuration](../configure/yaml/yaml_configuration.md)
1032-
documentation); and
1032+
[configuration](../configure/yaml/index.md) documentation); and
10331033

10341034
* if `stack build` is commanded in a project directory, there is a
10351035
`stack.yaml` file in that directory.

doc/commands/config_command.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stack config COMMAND
77
88
Available commands:
99
env Print environment variables for use in a shell
10-
set Sets a key in YAML configuration file to value
10+
set Sets a key in configuration file to value
1111
~~~
1212

1313
The `stack config` commands provide assistance with accessing or modifying
@@ -58,8 +58,8 @@ Available commands:
5858
GHC installation.
5959
~~~
6060

61-
The `stack config set` commands allow the values of keys in YAML configuration
62-
files to be set. See `stack config set` for the available keys.
61+
The `stack config set` commands allow the values of keys in configuration files
62+
to be set. See `stack config set` for the available keys.
6363

6464
!!! note
6565

@@ -73,10 +73,11 @@ stack config set install-ghc [--global] true|false
7373
~~~
7474

7575
`stack config set install-ghc true` or `false` sets the
76-
[`install-ghc`](yaml_configuration.md#install-ghc) key in a YAML configuration
77-
file, accordingly. By default, the project-level configuration file
78-
(`stack.yaml`, by default) is altered. The `--global` flag specifies the
79-
user-specific global configuration file (`config.yaml`).
76+
[`install-ghc`](../configure/yaml/non-project.md#install-ghc) non-project
77+
specific configuration option in a configuration file, accordingly. By default,
78+
the project-level configuration file (`stack.yaml`, by default) is altered. The
79+
`--global` flag specifies the user-specific global configuration file
80+
(`config.yaml`).
8081

8182
## The `stack config set package-index download-prefix` command
8283

@@ -88,10 +89,11 @@ stack config set package-index download-prefix [--global] [URL]
8889

8990
`stack config set package-index download-prefix <url>` sets the
9091
`download-prefix` key of the
91-
[`package-index`](yaml_configuration.md#package-index) key in a YAML
92-
configuration file, accordingly. By default, the project-level configuration
93-
file (`stack.yaml`, by default) is altered. The `--global` flag specifies the
94-
user-specific global configuration file (`config.yaml`).
92+
[`package-index`](../configure/yaml/non-project.md#package-index) non-project
93+
specific configuration option in a configuration file, accordingly. By default,
94+
the project-level configuration file (`stack.yaml`, by default) is altered. The
95+
`--global` flag specifies the user-specific global configuration file
96+
(`config.yaml`).
9597

9698
## The `stack config set recommend-stack-upgrade` command
9799

@@ -100,10 +102,11 @@ stack config set recommend-stack-upgrade [--project] true|false
100102
~~~
101103

102104
`stack config set recommend-stack-upgrade true` or `false` sets the
103-
[`recommend-stack-upgrade`](yaml_configuration.md#recommend-stack-upgrade) key
104-
in a YAML configuration file, accordingly. By default, the user-specific global
105-
configuration file (`config.yaml`) is altered. The `--project` flag specifies
106-
the project-level configuration file (`stack.yaml`, by default).
105+
[`recommend-stack-upgrade`](../configure/yaml/non-project.md#recommend-stack-upgrade)
106+
non-project specific configuration option in a configuration file, accordingly.
107+
By default, the user-specific global configuration file (`config.yaml`) is
108+
altered. The `--project` flag specifies the project-level configuration file
109+
(`stack.yaml`, by default).
107110

108111
## The `stack config set resolver` command
109112

@@ -140,7 +143,8 @@ stack config set system-ghc [--global] true|false
140143
~~~
141144

142145
`stack config set system-ghc true` or `false` sets the
143-
[`system-ghc`](yaml_configuration.md#system-ghc) key in a YAML configuration
144-
file, accordingly. By default, the project-level configuration file
145-
(`stack.yaml`, by default) is altered. The `--global` flag specifies the
146-
user-specific global configuration file (`config.yaml`).
146+
[`system-ghc`](../configure/yaml/non-project.md#system-ghc) non-project
147+
specific configuration option in a configuration file, accordingly. By default,
148+
the project-level configuration file (`stack.yaml`, by default) is altered. The
149+
`--global` flag specifies the user-specific global configuration file
150+
(`config.yaml`).

doc/commands/init_command.md

Lines changed: 1 addition & 1 deletion
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 default project-level YAML configuration file
9+
`stack init` initialises Stack's default project-level 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/commands/ls_command.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ example of the applied style. The latter can be disabled with flags `--no-sgr`
232232
and `--no-example`.
233233

234234
The flag `--basic` specifies a more basic report, in the format that is accepted
235-
by Stack's command line option `--stack-colors` and the YAML configuration key
236-
`stack-colors`.
235+
by Stack's command line option `--stack-colors` and the
236+
[`stack-colors`](../configure/yaml/non-project.md#stack-colors) non-project
237+
specific configuration option.
237238

238239
## The `stack ls tools` command
239240

doc/commands/path_command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ 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`, by default).|
25+
|--config-location |Stack's project-level 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. |
2929
|--ghc-package-path |The `GHC_PACKAGE_PATH` environment variable. |
30-
|--global-config |Stack's user-specific global YAML configuration file (`config.yaml`).|
30+
|--global-config |Stack's user-specific global configuration file (`config.yaml`).|
3131
|--global-pkg-db |The global package database. |
3232
|--local-bin |The directory in which Stack installs executables. |
3333
|--local-doc-root |The root directory for local project documentation. |

doc/commands/sdist_command.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ available modes for use with Cabal file revisions are `lower-revision`,
2727
`upper-revision` and `both-revision`.
2828

2929
For futher information, see the
30-
[YAML configuration](../configure/yaml/non-project.md#pvp-bounds) documentation.
30+
[`pvp-bounds`](../configure/yaml/non-project.md#pvp-bounds) non-project specific
31+
configuration option documentation.
3132

3233
## `--tar-dir` option
3334

doc/commands/setup_command.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ By default:
2323
Pass the option `--ghc-bindist <url>` to specify the URL of the GHC to be
2424
downloaded and installed. This option requires the use of the `--ghc-variant`
2525
option specifying a custom GHC variant. For further information about the
26-
`--ghc-variant` option, see the see the
27-
[YAML configuration](../configure/yaml/non-project.md#ghc-variant)
28-
documentation.
26+
`--ghc-variant` option, see the
27+
[`ghc-variant`](../configure/yaml/non-project.md#ghc-variant) non-project
28+
specific configuration option documentation.
2929

3030
If Stack is configured not to install GHC (`install-ghc: false` or passing the
3131
`--no-install-ghc` flag) then `stack setup` will warn that the flag and the

doc/commands/upload_command.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ available modes for use with Cabal file revisions are `lower-revision`,
5757
`upper-revision` and `both-revision`.
5858

5959
For futher information, see the
60-
[YAML configuration](../configure/yaml/non-project.md#pvp-bounds) documentation.
60+
[`pvp-bounds`](../configure/yaml/non-project.md#pvp-bounds) non-project
61+
specific configuration option documentation.
6162

6263
The `--tar-dir <path_to_directory>` option determines whether the package
6364
archive should be copied to the specified directory.

doc/configure/environment_variables.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,24 @@ sequences for color to its output.
8888
## `STACK_CONFIG`
8989

9090
Related command: all commands that make use of Stack's
91-
[global YAML configuration files](yaml/yaml_configuration.md) (`config.yaml`).
91+
[global configuration](yaml/index.md) files (`config.yaml`).
9292

9393
The environment variable `STACK_CONFIG` can be used to specify an absolute path
94-
to the user-specific global YAML configuration file, overriding the default.
94+
to the user-specific global configuration file, overriding the default.
9595

9696
## `STACK_GLOBAL_CONFIG`
9797

9898
Related command: all commands that make use of Stack's
99-
[global YAML configuration files](yaml/yaml_configuration.md) (`config.yaml`).
99+
[global configuration](yaml/index.md) files (`config.yaml`).
100100

101101
The environment variable `STACK_GLOBAL_CONFIG` can be used to specify an
102-
absolute path to the system-wide global YAML configuration file, overriding the
102+
absolute path to the system-wide global configuration file, overriding the
103103
default.
104104

105105
## `STACK_ROOT`
106106

107107
Related command: all commands that make use of Stack's
108-
[user-specific global YAML configuration file](yaml/yaml_configuration.md)
109-
(`config.yaml`).
108+
[user-specific global configuration](yaml/index.md) file (`config.yaml`).
110109

111110
Overridden by: Stack's global
112111
[`--stack-root`](global_flags.md#-stack-root-option) option.
@@ -131,8 +130,7 @@ the root directory of the project or package. The relative path cannot include a
131130
## `STACK_XDG`
132131

133132
Related command: all commands that make use of Stack's
134-
[user-specific global YAML configuration file](yaml/yaml_configuration.md)
135-
(`config.yaml`).
133+
[user-specific global configuration](yaml/index.md) file (`config.yaml`).
136134

137135
Overridden by: the use of Stack's `STACK_ROOT` environment variable, or the use
138136
of Stack's global
@@ -145,10 +143,10 @@ set to any non-empty value.
145143
## `STACK_YAML`
146144

147145
Related command: all commands that make use of Stack's
148-
[project-level YAML configuration file](yaml/yaml_configuration.md).
146+
[project-level configuration](yaml/index.md).
149147

150148
Overridden by: Stack's global
151149
[`--stack-yaml`](global_flags.md#-stack-yaml-option) option.
152150

153151
The environment variable `STACK_YAML` can be used to specify Stack's
154-
project-level YAML configuration file.
152+
project-level configuration file.

0 commit comments

Comments
 (0)