Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check what version of a package is installed with stack?

Within my project's .cabal file I've got the following under the executable section:

executable ArchPkgstatsScraper   hs-source-dirs:      app   main-is:             Main.hs   ghc-options:         -threaded -rtsopts -with-rtsopts=-N   build-depends:       base                        , ArchPkgStatsScraper                        , text                        , conduit                        , html-conduit                        , http-conduit                        , xml-conduit                        , resourcet                        , transformers 

After I've successfully installed / built the above with stack, how could I check which version of xml-conduit is installed?

like image 576
Chris Stryczynski Avatar asked Nov 02 '16 08:11

Chris Stryczynski


People also ask

How do I know if stack is installed?

html -> click on system information-> login with admin rights -> you can get all details about the installed server.

Where does stack install packages?

Stack installs the Stackage libraries in ~/. stack and any project libraries or extra dependencies in a . stack-work directory within each project's directory.

How do I check the version of an R package?

You can use the packageVersion() function to print version information about the loaded packages. To print the version information about R, the OS and attached or loaded packages, use the sessionInfo() function.

Where does Stack install GHC?

In its default configuration, Stack will simply ignore any system GHC installation and use a sandboxed GHC that it has installed itself. You can find these sandboxed GHC installations in the ghc-* directories in the stack path --programs directory.


1 Answers

The command

stack ls dependencies 

or for older version of stack:

stack list-dependencies 

will list every dependency installed for the current project, along with its version.

like image 61
Matthew Walton Avatar answered Sep 18 '22 19:09

Matthew Walton