• create a new project: stack new foo-latest
  • edit foo-latest/stack.yaml, add any needed packages to extra-deps
  • do stack install somepackage-1.20.0 with 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.