Skip to content

Commit 6a26ee2

Browse files
committed
Further clarify configuration file documentation
1 parent b722d2f commit 6a26ee2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/scripts.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,24 +170,24 @@ providing a comma or space separated list. For example:
170170

171171
## Stack configuration for scripts
172172

173-
As with using the [`stack script`](script_command.md) command at the command
174-
line, any project-level configuration file (`stack.yaml`, by default) (including
175-
in the `global-project` directory in the Stack root), including any specified by
176-
the `stack script` command itself, is ignored.
173+
When using the [`stack script`](script_command.md) command, as when using it at
174+
the command line, any project-level configuration file (`stack.yaml`, by
175+
default) (including in the `global-project` directory in the Stack root),
176+
including any specified by the options to the `stack script` command itself, is
177+
ignored.
177178

178179
!!! info
179180

180181
Non-project level configuration options in global configuration files
181182
(`config.yaml`), are not ignored by the [`stack script`](script_command.md)
182-
command. Such options may be useful if
183+
command. Such options may be useful if
183184
[`allow-newer`](yaml_configuration.md#allow-newer) and/or
184185
[`allow-newer-deps`](yaml_configuration.md#allow-newer-deps) are required.
185186

186-
As with using the [`stack runghc`](runghc_command.md) command at the command
187-
line, if the current working directory is inside a project, then that project's
188-
project-level configuration file is effective when running the script. Otherwise
189-
the script uses the project-level configuration file in the `global-project`
190-
directory in the Stack root.
187+
When using the [`stack runghc`](runghc_command.md) command, as when using it at
188+
the command line, if the current working directory is inside a project, then
189+
that project's project-level configuration file is effective when running the script. Otherwise the script uses the project-level configuration file in the
190+
`global-project` directory in the Stack root.
191191

192192
## Testing scripts
193193

0 commit comments

Comments
 (0)