@@ -170,20 +170,24 @@ providing a comma or space separated list. For example:
170170
171171## Stack configuration for scripts
172172
173- As with using [ ` stack script ` ] ( script_command.md ) at the command line, any
174- project-level configuration file (` stack.yaml ` , by default) (including in the
175- ` global-project ` directory in the Stack root) is ignored.
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.
176177
177178!!! info
178179
179180 Non-project level configuration options in global configuration files
180- (`config.yaml`), are not ignored.
181-
182- With the [ ` stack runghc ` ] ( runghc_command.md ) command, if the current working
183- directory is inside a project then that project's Stack project-level
184- configuration file is effective when running the script. Otherwise the script
185- uses the project-level configuration file in the ` global-project ` directory of
186- the Stack root.
181+ (`config.yaml`), are not ignored by the [`stack script`](script_command.md)
182+ command. Such options may be useful if
183+ [`allow-newer`](yaml_configuration.md#allow-newer) and/or
184+ [`allow-newer-deps`](yaml_configuration.md#allow-newer-deps) are required.
185+
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.
187191
188192## Testing scripts
189193
0 commit comments