File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1993,9 +1993,17 @@ The script **must** return an exit code of `0` and the standard output **must**
1993
1993
be the absolute path to the GHC binary that was installed. Otherwise Stack will
1994
1994
ignore the script and possibly fall back to its own installation procedure.
1995
1995
1996
- The script is not run when `system-ghc : true`.
1996
+ When `system-ghc : true`, the script is not run. That is because the two
1997
+ mechanisms reflect distinct concepts, namely :
1997
1998
1998
- When `install-ghc : false`, the script is still run, which allows you to ensure
1999
+ * `system-ghc: true` causes Stack to search the PATH for a version of GHC; and
2000
+
2001
+ * `hooks/ghc-install.sh` causes Stack to execute a script that is intended to
2002
+ send to standard output a path to a version of GHC. The path in question may
2003
+ or may not be in the PATH. The script may also do other things, including
2004
+ installation.
2005
+
2006
+ When `install-ghc : false`, the script is still run. That allows you to ensure
1999
2007
that only your script will install GHC and Stack won't default to its own
2000
2008
installation logic, even when the script fails.
2001
2009
You can’t perform that action at this time.
0 commit comments