Playing with GHC package databases

I wanted to do some dependency analysis of a Haskell project, and I wanted to see what it was like without installing a Cabal-specific tool such as cabal-plan (which works fine). Here’s what I played around with.