[Haskell-cafe] Cabal - how do I remove a package?

Paul Moore p.f.moore at gmail.com
Tue Oct 6 16:04:30 EDT 2009


2009/10/6 John Van Enk <vanenkj at gmail.com>:
> you want:
>
> ghc-pkg unregister [package name]
>
> and
>
> ghc-pkg list

Thanks. I wouldn't have found that by myself.

Unfortunately, having issued

ghc-pkg unregister mersenne-random-1.0

I still see the code present:

>dir C:\Users\Gustav\AppData\Roaming\cabal\mersenne-random-1.0\ghc-6.10.4

 Volume in drive C is OS             Serial number is 8442:99ea
 Directory of  C:\Users\Gustav\AppData\Roaming\cabal\mersenne-random-1.0\ghc-6.10.4\*

05/10/2009  21:06         <DIR>    .
05/10/2009  21:06         <DIR>    ..
05/10/2009  21:06         <DIR>    include
05/10/2009  21:06         <DIR>    System
05/10/2009  21:06          44,350  HSmersenne-random-1.0.o
05/10/2009  21:06          66,762  libHSmersenne-random-1.0.a

Looks like ghc-pkg unregister just does precisely that - unregisters
the package but doesn't remove it. Can I even persuage cabal/ghc-pkg
to list all the files and directories created by the install so I can
remove them by hand?

Paul.


More information about the Haskell-Cafe mailing list