This repository was archived by the owner on Feb 3, 2022. It is now read-only.
This repository was archived by the owner on Feb 3, 2022. It is now read-only.
Cannot update cabal (Windows PATH issue) #51
Open
Description
On Windows with Haskell Platform 2010.1.0.0 :
- The all-users PATH variable contains %INSTALLDIR%\lib\extralibs\bin.
- The user-specific PATH variable contains %APPDATA%\cabal\bin.
This causes a problem because :
- Every directory in the all-users PATH variable is always checked first, so the shell always uses %INSTALLDIR%\lib\extralibs\bin\cabal.exe.
- cabal install cabal-install only updates %APPDATA%\cabal\bin\cabal.exe rather than both.
- So, you effectively can't update cabal on Windows.
Workaround: Delete %INSTALLDIR%\lib\extralibs\bin\cabal.exe.