Given a Haskell project, is there a way to automatically calculate the entire list of dependencies? All the libraries it depends on as well as libraries that have been included but are not required.
Given a Haskell project, is there a way to automatically calculate the entire list
Share
As I said in the comments, cabal-install already does this (I’m using cabal-install 0.14.0) by guessing the packages via module lookup (like GHCi). It doesn’t have any real intelligence w.r.t. versions so it just sets the version to the match major version of what you have installed.
Below you can see me making a dummy package that imports
Data.Vectorand cabal-install infers I am using vector 0.9.*.