Is there a stack command one can run to get a list of all the LTS versions installed by stack on my system?
Asked
Active
Viewed 439 times
6
-
Is this question even sensible? I thought an LTS was essentially just a collection of package versions. What would "installing" a collection of version numbers mean? – Daniel Wagner Jul 06 '17 at 03:21
-
2@DanielWagner Sometimes if I'm creating a new package, I usually want to be using the same latest `lts` present in my system for that new package so that it can use cache from those locally stored snapshot. – Sibi Jul 06 '17 at 05:26
1 Answers
6
Not sure about stack
command but you can do it with bash
command:
$ ls ~/.stack/snapshots/x86_64-linux/
For me it prints:
lts-8.13 lts-8.15 lts-8.17 lts-8.21 lts-8.3
Instead of x86_64-linux
should be your arch. But you don't need to remember it. Just press TAB
after snapshots/
.

Shersh
- 9,019
- 3
- 33
- 61