Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
be able to specify default values for `system-ghc` and `resolver` #904
Is there a way to default the value of
I've tried adding them to my ~/.stack/global/stack.yaml file, but it doesn't seem to have any effect when using
Btw, I think defaulting
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
Do you think this is common?
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