@@ -627,7 +627,7 @@ See [`setup-info`](#setup-info).
627627 so `stack setup` knows where to download it,
628628 or pass the `stack setup --ghc-bindist` argument on the command-line
629629
630- This option is incompatible with `system-ghc : true`.
630+ This option is incompatible with [ `system-ghc : true`](#system-ghc) .
631631
632632# # global-hints-location
633633
@@ -732,14 +732,29 @@ will receive a warning if this configuration value is set.
732732## install-ghc
733733
734734Default: ` true `
735- ([ :octicons-tag-24: 1.5.0 ] ( https://github.com/commercialhaskell/stack/releases/tag/v1.5.0 ) )
735+ ([ :octicons-tag-24: 1.6.1 ] ( https://github.com/commercialhaskell/stack/releases/tag/v1.6.1 ) )
736736
737737Command line equivalent (takes precedence):
738738[ ` --[no-]install-ghc ` ] ( ../global_flags.md#-no-install-ghc-flag ) flag
739739
740- Whether or not to download and install GHC when necessary. On Windows,
741- ` install-ghc: false ` also disables the download and installation of the
742- Stack-supplied MSYS2 when necessary.
740+ If the specified GHC version is not available, (if ` true ` ) should Stack seek to
741+ download and install that version when it is needed or (if ` false ` ) fail
742+ (reporting that the specified compiler is not available)?
743+
744+ ~~~ yaml
745+ # Even if needed, do not seek to download and install a Stack-supplied GHC:
746+ install-ghc : false
747+ ~~~
748+
749+ On Windows, `install-ghc : false` also disables the download and installation of
750+ the Stack-supplied MSYS2 when it is needed.
751+
752+ !!! note
753+
754+ The `install-ghc` option does not specify whether Stack checks the
755+ availability of either a 'system' GHC executable on the PATH or a
756+ Stack-supplied GHC executable. In that regard, see the
757+ [`system-ghc`](#system-ghc) option.
743758
744759# # install-msys
745760
@@ -754,7 +769,7 @@ Command line equivalent (takes precedence):
754769[`--[no-]install-msys`](../global_flags.md#-no-install-msys-flag) flag
755770
756771If Stack is checking for the Stack-supplied MSYS2 when Stack is setting up the
757- environment, whether or not to download and install MSYS2 when necessary .
772+ environment, whether or not to download and install MSYS2 when it is needed .
758773
759774To skip entirely checking for the Stack-supplied MSYS2, see the documentation
760775for the [`skip-msys`](#skip-msys) configuration option.
@@ -1476,22 +1491,30 @@ stack-developer-mode: false
14761491
14771492# # system-ghc
14781493
1479- Default : ` false` , unless the [Docker](../../topics/docker_integration.md) or
1494+ Default : ` false`
1495+ ([:octicons-tag-24 : 1.3.0](https://github.com/commercialhaskell/stack/releases/tag/v1.3.0)),
1496+ unless the [Docker](../../topics/docker_integration.md) or
14801497[Nix](../../topics/nix_integration.md) integration is enabled.
14811498
14821499Command line equivalent (takes precedence) : ` --[no-]system-ghc` flag
14831500
1484- Enables or disables using the GHC available on the PATH. (Make sure PATH is
1485- explicit, i.e., do not use ~.) Useful to enable if you want to save the time,
1486- bandwidth or storage space needed to setup an isolated GHC.
1487-
1488- In a Nix-enabled configuration, Stack is incompatible with `system-ghc : false`.
1501+ Should Stack seek to use (if `true`) a 'system' GHC executable (that is, one on
1502+ the PATH) or (if `false`) a Stack-supplied GHC executable?
14891503
14901504~~~yaml
1491- # Turn on system GHC
1505+ # Seek to use a ' system' GHC on the PATH rather than a Stack-supplied GHC:
14921506system-ghc : true
14931507~~~
14941508
1509+ Stack's [Nix integration](../../topics/nix_integration.md), when enabled, is
1510+ incompatible with `system-ghc : false`.
1511+
1512+ !!! note
1513+
1514+ The `system-ghc` option does not specify Stack's behaviour if the specified
1515+ GHC version is not already available. In that regard, see the
1516+ [`install-ghc`](#install-ghc) option.
1517+
14951518# # templates
14961519
14971520Command line equivalent (takes precedence) : ` stack new --param <key>:<value>`
0 commit comments