-
Notifications
You must be signed in to change notification settings - Fork 846
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
Location of stack's config.yaml on Windows #2959
Comments
First, it'd be good to fix the docs—a PR would be great! Second, the location of Third: changing the default location read would be awkward, but adding a new path might be an option if there's sufficient demand for the extra code complexity and testing — though it's not obvious this qualifies. However, About the GHCi behavior: So, I'm not sure why GHCi does that, or which GHC version that is: Is yours, by any chance, a Cygwin-based GHCi? That might make a difference. Stack uses a somewhat standard Haskell API to determine the location, and its docs specify using %APPDATA% on Windows. I'm not sure that would apply to Cygwin. Also, this is an API for folder locations, not for files... Apparently, a better API for this purpose might be |
GHCi automatically assumes I'm fine with all the data in I have to ask though, |
Regarding your case: would you be satisfied with
You're right: different parts of Back to the configuration itself: This is a matter of convention and I don't have strong preferences either way, but dotfiles in Nevertheless, if some volunteer (say, you @CMCDragonkai) cares enough to contribute a PR with enough tests I wouldn't mind. What about looking for |
So I decided to use I'm not entirely understanding what you mean by I guess my request would be that if you do happen to transition to using |
I just met this problem #1375 Now I hoped I could just do |
|
According to https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md there's nothing about the configuration file's location in Windows, in fact most of the docs seem to imply that
~/.stack/config.yaml
should also work on Windows. However I found that the configuration file is located here:%APPDATA%\stack\config.yaml
. If I create%USERPROFILE%\.stack\config.yaml
, will this be read by stack? And if not, why not? GHCI supports reading%USERPROFILE%\.ghci
on Windows. I work on both Windows, Cygwin and Linux, and would prefer to have the configuration files in a standardised location (makes my .dotfiles simpler).The text was updated successfully, but these errors were encountered: