- create a new project:
stack new foo-latest
foo-latest/stack.yaml, add any needed packages to extra-deps
stack install somepackage-1.20.0with the package version specified.
This can be useful when LTS (long term support) is lagging behind.
Note: stack might suggest editing the global project stack.yaml, but this might not be the best thing to do.