I\'m installing Haskell on Windows based on the instructions at https://www.haskell.org/platform/ and looking at step 3, it says, Modify your cabal config file (you can veri
You don't need to overwrite existing lines. You can have multiple extra-prog-path
entries and they all get used.
I have cabal-install version 2.4.1.0. As proposed in https://www.haskell.org/cabal/users-guide/nix-local-build.html and contrary to the installing instructions at https://www.haskell.org/platform/windows.html, I'm using one single extra-prog-path
line containing a comma separated list of paths:
extra-prog-path: C:\Users\...\AppData\Roaming\cabal\bin,C:\Program Files\Haskell Platform\8.6.5\msys\usr\bin
Reason: Like this, at least the command cabal user-config diff
gives reasonable results.
C:\>cabal user-config diff
+ extra-include-dirs: C:\Program Files\Haskell Platform\8.6.5\mingw\include
+ extra-lib-dirs: C:\Program Files\Haskell Platform\8.6.5\mingw\lib
- extra-prog-path: C:\Users\...\AppData\Roaming\cabal\bin
+ extra-prog-path: C:\Users\...\Roaming\cabal\bin,C:\Program Files\Haskell Platform\8.6.5\msys\usr\bin
+ logs-dir: C:\Users\...\AppData\Roaming\cabal\logs
If I'd follow the installing instructions and use two extra-prog-path
lines, then cabal user-config diff
would ignore the second one. I'm not sure however if this matters.