简体   繁体   中英

Visualize a dependency graph of packages for a cabal project?

There is ghc-pkg dot but that seems to only work for a ghc package database.

You can use the cabal-plan executable to generate a dependency graph. First install cabal-plan with:

cabal install cabal-plan

Then you can go to your cabal package directory and run:

cabal-plan dot | dot -Tpdf -odeps.pdf

(You have to run cabal build or cabal configure first if you have not done so already)

This will produce a dependency graph in PDF form in the file deps.pdf .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM