Is there a stack command one can run to get a list of all the LTS versions installed by stack on my system?
You can also find the server details using following steps: http: <hostname:portn0>\index. html -> click on system information-> login with admin rights -> you can get all details about the installed server.
Stack installs the Stackage libraries in ~/. stack and any project libraries or extra dependencies in a . stack-work directory within each project's directory.
You can find these sandboxed GHC installations in the ghc-* directories in the stack path --programs directory. If you would like Stack to use your system GHC installation, use the --system-ghc flag or run stack config set system-ghc --global true to make Stack check your PATH for a suitable GHC by default.
Stack-built files generally go in either the Stack root directory (default: ~/. stack on Unix-like operating systems, or, %LOCALAPPDATA%\Programs\stack on Windows) or ./. stack-work directories local to each project. The Stack root directory holds packages belonging to snapshots and any Stack-installed versions of GHC.
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/
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With