Hpack is a format for Haskell packages. It is a modern alternative to the Cabal package format and follows different design principles. After uninstalling, run this command to unregister the package from the ghc package database: ghc-pkg recache