-
Notifications
You must be signed in to change notification settings - Fork 841
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
be able to specify default values for system-ghc
and resolver
#904
Comments
In general, see the stack.yaml documentation for information about which options can go where. In particular, since There is no way to set the default resolver for The
Do you think this is common? |
Thanks for the reply! Re the default value of |
Actually, the
|
Er, I meant no way to set it in a configuration file, but I should have been more specific. In general, we're pushing to make more command-line options settable in the config file, but I have my doubts as to whether this one should be. Stack new/init need to use some logic to determine the right resolver for the particular template or project, which means forcing a default is as likely to cause problems as it is to be helpful.
Have you done anything weird, such as perhaps installing multiple versions of a package in the global package database (Cabal and bytestring seem especially prone to this)? That should only happen if you explicitly use |
Closing due to lack of feedback. Issue #115 may be relevant. |
Is there a way to default the value of
system-ghc
andresolver
when creating a new stack.yaml?I've tried adding them to my ~/.stack/global/stack.yaml file, but it doesn't seem to have any effect when using
stack new
.Btw, I think defaulting
system-ghc: false
would be a good idea, especially for beginners if they have a corrupted ghc package db.The text was updated successfully, but these errors were encountered: