haskell-ghc-paths gives knowledge of GHC's installation directories. After uninstalling, run this command to unregister the package from the ghc package database: ghc-pkg recache