Are you actually trying to remove the bits from the hard drive, or is that something to fix a different problem you're having. If it's a different problem, perhaps you could ask that as well?
2009/10/6 John Van Enk <vanenkj@gmail.com>:
> you want:Thanks. I wouldn't have found that by myself.
>
> ghc-pkg unregister [package name]
>
> and
>
> ghc-pkg list
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.