stack list command¶
stack list <package_name> will list the latest version of the package from
Hackage. If the package name cannot be found on Hackage, even after updating the
package index, suggestions (not necessarily good ones) will be made about the
intended package name.
stack --resolver <snapshot> <package_name> will list the version of the
package in the specified snapshot, unless the package comes with GHC on
Unix-like operating systems. If the package name cannot be found in the
snapshot, the command will fail, identifying only the package(s) that did not
appear in the snapshot.
More than one package name can be specified.
stack --resolver <snapshot> will list all the packages in the specified
snapshot, except those which come with GHC on Unix-like operating systems.
stack list base unix Win32 acme-missiles pantry base-184.108.40.206 unix-220.127.116.11 Win32-18.104.22.168 acme-missiles-0.3 pantry-0.5.7 stack list paltry Could not find package paltry, updating ... Package index cache populated - Could not find package paltry on Hackage. Perhaps you meant: pretty, pasty, xattr, alloy, para, pappy, alure, polar, factory, pastis stack --resolver lts-19.25 base unix Win32 acme-missiles pantry - Package does not appear in snapshot: base - Package does not appear in snapshot: unix - Package does not appear in snapshot: acme-missiles stack --resolver lts-19.25 Win32 pantry Win32-22.214.171.124 pantry-0.5.7 stack --resolver lts-19.25 AC-Angle-1.0 ALUT-126.96.36.199 ... zstd-0.1.3.0 ztail-188.8.131.52