Is there a way to tell stack that I want to use an older resolver by default?

Viewed 181

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.

1 Answers

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
Related