@@ -1233,8 +1233,8 @@ The shebang line is not required in that case.
1233
1233
### Just-in-time compilation
1234
1234
1235
1235
You can add the `--compile` flag to make stack compile the script,
1236
- and then run the compiled executable. Compilation is done quickly,
1237
- without optimization. To compile with optimization, use the `--optimize` flag
1236
+ and then run the compiled executable. Compilation is done quickly,
1237
+ without optimization. To compile with optimization, use the `--optimize` flag
1238
1238
instead. Compilation is done only if needed; if the executable already exists,
1239
1239
and is newer than the script, stack just runs the executable directly.
1240
1240
@@ -1399,12 +1399,18 @@ is that it's the catch-all project whenever you're running stack somewhere else.
1399
1399
1400
1400
## Setting stack root location
1401
1401
1402
- `stack path --stack-root` will tell you the location of the "stack root". Among
1403
- other things, this is where stack stores downloaded programs and snapshot
1404
- packages. This location can be configured by setting the STACK_ROOT environment
1405
- variable or passing the `--stack-root` commandline option. It is particularly
1406
- useful to do this on Windows, where filepaths are limited (MAX_PATH), and things
1407
- can break when this limit is exceeded.
1402
+ `stack path --stack-root` will tell you the location of the 'stack root'. This
1403
+ is where stack stores snapshot packages, among other things. On operating
1404
+ systems other than Windows, it is also where stack stores tools such as ghc and
1405
+ msys by default, in a `programs` folder. (On Windows, the default location for
1406
+ such tools is `%LOCALAPPDATA%\Programs\stack`.)
1407
+
1408
+ The location of the stack root can be configured by setting the `STACK_ROOT`
1409
+ environment variable or using stack's `--stack-root` option on the command line.
1410
+ It is particularly useful to do this on Windows, where the length of filepaths
1411
+ may be limited (to
1412
+ [MAX_PATH](https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd)),
1413
+ and things can break when this limit is exceeded.
1408
1414
1409
1415
## `stack.yaml` vs `.cabal` files
1410
1416
0 commit comments