this tool extracts dependencies from Cabal files and prints them as Prolog terms for further processing.
direct dependencies are labelled "1", and transitive dependencies "2".
stack build
stack exec cabal-dependencies-exe ../my-other-project/project.cabal > dependencies.pl
cabal new-build
cabal new-run cabal-dependencies-exe ../my-other-project/project.cabal > dependencies.pl
prints out a list of all dependencies.
swipl -q -t go depdep.pl > dependencies.csv
prints out a list of modules defined by the cabal files.
swipl -q -t go2 depdep.pl > modules.csv
analysed the dependencies in a huge project (Cardano-SL).
this project contains more than 20 modules.
the CSV data have been loaded into a LibreOffice calc sheet for visualisation.