'Is there a way to tell stack that I want to use an older resolver by default?
How would I configure stack to use an older resolver by default?
I know the resolver can be specified on the command line at build time and per project in the project configuration or at project creation time. Is there a way to set it so that every new project that I create defaults to a specific older resolver?
I tried configuring stack with stack setup --resolver=lts-15.2
but stack new <projectname>
still defaults to the latest lts resolver.
Solution 1:[1]
I set stack's resolver at the global level by modifying ~/.stack/global-project/stack.yaml
. In my case I included the line:
resolver: lts-18.28
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | mherzl |