I have windows 11 and I installed haskell using ghcup. Ghcup installed me a "2.7.5" version of stack, ang in C:\ghcup\bin
it's named as stack-2.7.5.exe
and not stack.exe
. Why is that so? Shouldn't there at least be a wrapper that uses installed version?
Asked
Active
Viewed 119 times
0

Egor
- 1
- 1
-
This might not be the best place to get help with this. See the "Need help?" section at https://www.haskell.org/ghcup/. – sjakobi Sep 14 '22 at 05:14
-
That is because `ghcup` can install different version of the same executable. Therefore, you can install `stack-2.7.5` and `stack-2.9.0` (for example). In theory, your PATH should point to one of them using the name `stack`. In linux-like system it uses a symbolic link, I don't know in windows. Can't you execute `stack` on a console? – lsmor Sep 14 '22 at 09:13
-
What does the command `which stack` return on Linux? Or `get-command stack` on PowerShell? – Francis King Sep 14 '22 at 09:58
-
@FrancisKing the relevant command on Windows is `WHERE`, so `WHERE STACK` (though PowerShell's `Get-Command` will also work if you're in PowerShell). – A. R. Sep 14 '22 at 12:48