Is there a way to list files installed by a Haskell cabal package? In other words: is there a way to list files associated with a Haskell package?
For example, in Debian based systems, including Ubuntu, one can use dpkg -l
to list all packages, and dpkg -L package_name
to list files associated with a given package:
$ dpkg -L gzip
/.
/bin
/bin/gunzip
/bin/gzexe
/bin/gzip
/bin/uncompress
/bin/zcat
/bin/zcmp
/bin/zdiff
/bin/zegrep
/bin/zfgrep
/bin/zforce
/bin/zgrep
/bin/zless
/bin/zmore
/bin/znew
/usr
/usr/share
...
On Arch Linux, the same is achieved by pacman -Ql package_name
:
$ pacman -Ql gzip
gzip /usr/
gzip /usr/bin/
gzip /usr/bin/gunzip
gzip /usr/bin/gzexe
gzip /usr/bin/gzip
gzip /usr/bin/uncompress
gzip /usr/bin/zcat
gzip /usr/bin/zcmp
gzip /usr/bin/zdiff
gzip /usr/bin/zegrep
gzip /usr/bin/zfgrep
gzip /usr/bin/zforce
gzip /usr/bin/zgrep
gzip /usr/bin/zless
gzip /usr/bin/zmore
gzip /usr/bin/znew
gzip /usr/share/
...
Finally, using Python's PIP, one can use pip show -f package_name
to show files associated with package package_name
. 1
Is there a way to do the above for packages installed through cabal
using either cabal
or ghc-pkg
? I know I can list packages using ghc-pkg list
or cabal list --installed
, but not how to list the files associated with specific packages.