I have installed Haskell Platform 2012 in Windows 7. I write in the console cabal update
and I take a message that there is a new version of cabal. I write ca
The error message is incomplete. Install cabal-install globally as:
cabal install cabal-install --global
You need to add C:\username\AppData\Roaming\cabal
(or whatever directory now has the cabal
executable -- use e.g. dir
or your favorite file manager to verify that you have the right place) to your %PATH%
environment variable and restart your command prompt.
The problem is that the cabal
executable that came with Haskell Platform gets picked up instead of the one that you installed.
You need to edit the value of the PATH environment variable and place %AppData%\cabal\bin
before %PROGRAMFILES%\Haskell Platform\...\bin
so that it's given higher priority.