Skip to content
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
@r0ml

Description

@r0ml

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions