[Haskell-beginners] Cabal problems - as usual..

Henk-Jan van Tuyl hjgtuyl at chello.nl
Fri Jan 30 22:33:42 UTC 2015

On Fri, 30 Jan 2015 14:54:36 +0100, Gregory Guthrie <guthrie at mum.edu>  

> Doing a cabal update, it notes a new version of cabal -install, so  
> trying that fails, and now it looks like cabal itself is broken (no  
> installs work).
> Any short-term \remedies, and/or long term better approaches?

A method that usually works is as follows:
   md CabalInstall
   cd CabalInstall
   cabal sandbox init
   cabal install cabal-install
Then copy CabalInstall\.cabal-sandbox\bin\cabal.exe to the location of the  
old cabal.exe (probably something like "C:\Program Files\Haskell  
(Maybe rename the old cabal.exe to cabal- (or something  
similar) first)
Check with
   cabal --version
if the correct version of cabal.exe is run.

If you are using a sandbox, all locally installed packages are ignored, so  
there is less chance of dependency problems.

Henk-Jan van Tuyl

Folding at home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.

Haskell programming

More information about the Beginners mailing list