[Haskell-cafe] Curious why "cabal upgrade parsec" not installing latest version

Peter Schmitz ps.haskell at gmail.com
Fri Sep 17 17:25:05 EDT 2010


Thank you both very much for your kind help and comments.
I'm really impressed with the quality of help at Haskell Cafe,
and Cabal really has worked great for me; I'll just avoid "upgrade"
in the future.


So, to get a clean start with my library situation I will delete my
"...\Application Data\ghc" dir which includes dir
"...\Application Data\ghc\i386-mingw32-6.12.1\package.conf.d\"
which contains a lot of .conf files.

I am also wondering about whether I should delete any dirs in my
cabal tree.

I would keep my cabal config file, and "...\cabal\bin\" of course,
but should I delete the various package dirs there also?

And should I delete the "...\cabal\packages\hackage.haskell.org\"
tree? Those seem to be tarballs.

Thanks again,
-- Peter

On Thu, Sep 16, 2010 at 8:54 PM, Ivan Lazar Miljenovic
<ivan.miljenovic at gmail.com> wrote:
> On 17 September 2010 13:52, Ivan Lazar Miljenovic
> <ivan.miljenovic at gmail.com> wrote:
>> Run "ghc-pkg check", and do a "cabal install --reinstall" for all
>> packages that it says need to be rebuilt at the bottom.
> Actually, I just re-read your post and you seem to have bigger problems...
> The cause of the problem: you used "cabal upgrade".  This appears to
> have resulted in cabal-install "upgrading" boot libraries, which is a
> big no-no.
> Probably the easiest way to fix this is to delete your ~/.ghc/
> directory (and thus wipe out the libraries you installed with
> cabal-install) and re-install the libraries you want.

More information about the Haskell-Cafe mailing list