I am just starting to learn Haskell.
On Linux I installed using ghcup. I then installed stack as the ghcup install page for the generic Linux instructions (https://www.haskell.org/platform/linux.html#linux-generic) suggest. One inconsistency is that the ghcup install page itself (https://www.haskell.org/ghcup/) makes no mention of stack.
ghcup was done as an ordinary user (as the web page says) but for stack I had to use sudo which surprised me (and requires more trust). Anyway, I installed stack but then got a warning:
WARNING: '/home/mark/.local/bin' is not on your PATH.
For best results, please add it to the beginning of PATH in your profile.
This made no sense because although ~/.local/bin
isn’t on my PATH, stack was installed to /usr/local/bin/stack
and /usr/local/bin
is on my PATH. (Or course, I’d have rather it didn’t need sudo and was actually installed in ~/.local/bin
.)