Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jun 6, 2024
1 parent 39226aa commit 09052b1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doc/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ is most often `stack script` but it can be, for example, `stack runghc`. If
there is no Stack interpreter options comment, Stack will warn that one was
expected.

!!! warn

No project-level configuration is available for scripts and scripts will
ignore any supplied `--stack-yaml=<project-level-config-file>. As some
settings don't have a command line equivalent and can only be set via YAML,
such as `extra-deps`, `allow-newer` and `allow-newer-deps`, if a script would
need these options to build then your only choice is to edit the global
configuration or to limit package dependencies of scripts to those included
with a given resolver.
!!! warning

No project-level configuration is available for scripts and scripts will
ignore any supplied `--stack-yaml=<project-level-config-file>`. As some
settings don't have a command line equivalent and can only be set via YAML,
such as `extra-deps`, `allow-newer` and `allow-newer-deps`, if a script
would need these options to build then your only choices are to edit the
global configuration or to limit package dependencies of scripts to those
included with a given resolver.

An example will be easiest to understand. Consider the Haskell source file
`turtle-example.hs` with contents:

Expand Down

0 comments on commit 09052b1

Please sign in to comment.