The command ghc-pkg can be used to handle GHC packages. It is used both internally by other tools and by GHC users.