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 verify the location by running "cabal user-config init") to contain the following lines:
extra-prog-path: C:\Program Files\Haskell Platform\8.0.2\msys\usr\bin
extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.2\mingw\lib
extra-include-dirs: C:\Program Files\Haskell Platform\8.0.2\mingw\include
But the auto generated config file contains e.g.
extra-prog-path: C:\Users\w\AppData\Roaming\cabal\bin
So that's a different value for one of the suggested variables.
Is this intentional?
What should I do, paste the lines from step 3 at the start of the file, the end of the file, overwrite the existing lines or skip step 3 altogether?
extra-prog-path
can be a list of paths separated by commas). What doesn't work if you replace the existing paths, or don't replace them, or include both? Two asides; having spaces in the path will probably lead to issues down the line; and why aren't you using stack (it is the 2nd option on the downloads page)? – Diustack install hfmt
has been updating package index for twenty minutes now; is that supposed to happen? – DeoxygenateC:\Users\w\AppData\Roaming\cabal\bin
directory, nor if it even exists. Yes, it takes a long time (it's never taken me 20 minutes, but of course this depends on the speed of your internet connection) to fetch the package index the first time, but this is no different for plaincabal
withoutstack
. To be sure all is going well, you can runstack
with-v
(verbosity) - it will print the progress of the downloads. – Diuextra-prog-path
should be used and the newextra-prog-path
should be added, @user2407038. For newbies, Haskell Platform installation instructions for WIndows are hard to follow because of unfamiliarity of Cabal's user config syntax. – Esta