1 example for ghc-pkg
# list packages
ghc-pkg list
# global only
ghc-pkg list --global
# user only
ghc-pkg list --user
# delete a package
ghc-pkg unregister deepseq
# find broken packages
ghc-pkg check
# list packages
ghc-pkg list
# global only
ghc-pkg list --global
# user only
ghc-pkg list --user
# delete a package
ghc-pkg unregister deepseq
# find broken packages
ghc-pkg check