Installing Haskell on Windows, cabal config

后端 未结 2 687
广开言路
广开言路 2020-12-21 07:36

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

相关标签:
2条回答
  • 2020-12-21 07:54

    You don't need to overwrite existing lines. You can have multiple extra-prog-path entries and they all get used.

    0 讨论(0)
  • 2020-12-21 08:12

    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.

    0 讨论(0)
提交回复
热议问题