Removing/Uninstalling cabal packages ?

Hi, I have been doing a few experiments with cabal packages lately and I wish to uninstall these to return to a cleaner package base. However, there doesn't seem to be a "cabal uninstall" command and reading the documentation at http://www.haskell.org/ghc/docs/latest/html/Cabal/index.html does not tell much about how to do that manually. Note that what I wish to do is both delete the installed files and the cabal database so that the uninstalled packages does not show anymore when running "cabal list --installed". Would anyone know how to do that ? Thanks in advance. Regards, Laurent -- Laurent Giroud ml@niaow.com

On Sun, Dec 21, 2008 at 12:12 PM, Laurent Giroud
I have been doing a few experiments with cabal packages lately and I wish to uninstall these to return to a cleaner package base. However, there doesn't seem to be a "cabal uninstall" command and reading the documentation at http://www.haskell.org/ghc/docs/latest/html/Cabal/index.html does not tell much about how to do that manually.
I think you want 'ghc-pkg list' and 'ghc-pkg unregister'.

On Sun, 2008-12-21 at 13:30 -0600, brian wrote:
On Sun, Dec 21, 2008 at 12:12 PM, Laurent Giroud
wrote: I have been doing a few experiments with cabal packages lately and I wish to uninstall these to return to a cleaner package base. However, there doesn't seem to be a "cabal uninstall" command and reading the documentation at http://www.haskell.org/ghc/docs/latest/html/Cabal/index.html does not tell much about how to do that manually.
I think you want 'ghc-pkg list' and 'ghc-pkg unregister'.
If you also want to remove the files then that also has to be done manually at the moment. If any volunteers would like to help us implement tracking of installed files that would be most welcome. Duncan
participants (3)
-
brian
-
Duncan Coutts
-
Laurent Giroud