-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adapt existing Haskell Stack example for Windows #819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@mpilgrem |
@Phantsure, if environment variable |
examples.md
Outdated
name: Cache ~/.stack | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-stack-global- | ||
- uses: actions/cache@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this separate for windows and unix systems, like done here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Phantsure, can I double-check the intended URL behind the 'here'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Phantsure, I'll revise the PR to reflect that.
The default `STACK_ROOT` is `~/.stack` only on Unix-like operating systems. On Windows, the default is `%APPDATA%/stack` (usually `%HOME%\AppData\Roaming\stack`). On Unix-like OSs, Stack stores GHC and other tools in a `programs` directory in the `STACK_ROOT`. On Windows, Stack stores those tools and MSYS2 in `%LOCALAPPDATA%\Programs\stack` (usually `%HOME%\AppData\Local\Programs\stack`).
9295c91
to
d25c51b
Compare
The default
STACK_ROOT
is~/.stack
only on Unix-like operating systems. On Windows, the default is%APPDATA%/stack
(usually%HOME%\AppData\Roaming\stack
).On Unix-like OSs, Stack stores GHC and other tools in a
programs
directory in theSTACK_ROOT
. On Windows, Stack stores those tools and MSYS2 in%LOCALAPPDATA%\Programs\stack
(usually%HOME%\AppData\Local\Programs\stack
).