How can I get the list of available build plans for stack? On some system I get lts-3.7
and some other I have lts-3.1
.
Asked
Active
Viewed 1,787 times
7

Erik Kaplun
- 37,128
- 15
- 99
- 111

Geekingfrog
- 191
- 1
- 8
-
Do you mean a shell command? Do you use `cabal`? Please provide more information. – Willem Van Onsem Oct 08 '15 at 20:53
-
He uses `stack`/Stackage, as mentioned quite obviously. – Erik Kaplun Oct 09 '15 at 07:36
-
By the way, the default resolver for when you run `stack` outside a project, and the preferred resolver for `stack new` and `stack init`, is set in `~/.stack/global/stack.yaml`. – Emanuel Borsboom Oct 09 '15 at 12:13
1 Answers
6
A list of all available snapshots is at https://www.stackage.org/snapshots. Stackage.org builds this list from the build plans in these repositories:
- https://github.com/fpco/lts-haskell (for
lts-M.N
snapshots) - https://github.com/fpco/stackage-nightly (for
nightly-YYYY-MM-DD
snapshots)

Emanuel Borsboom
- 401
- 3
- 6
-
is there a way to get that on the cmdline? or is it always the same and not dependent on the machine? – Erik Kaplun Oct 09 '15 at 07:37
-
2It isn't the full information, but this will give you back some JSON showing the latest nightly, and latest minor version for every major LTS release: `curl -sSL http://www.stackage.org/download/lts-snapshots.json` – Emanuel Borsboom Oct 09 '15 at 12:09
-
-
I don't believe that there is. You can submit a feature request at https://github.com/commercialhaskell/stack/issues/new – Emanuel Borsboom Oct 14 '15 at 22:54