You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think I provided any particular flags when installing GHCup (it was some time ago, I could delete it and install it again) but I think the env file is somewhat wrong. My installation folders are /c/ghcup and /c/cabal, however the script reads as follows:
➜ cat /c/ghcup/env
case ":$PATH:" in
*:"/c/ghcup/bin":*)
;;
*)
export PATH="/c/ghcup/bin:$PATH"
;;
esac
case ":$PATH:" in
*:"$HOME/.cabal/bin":*)
;;
*)
export PATH="$HOME/.cabal/bin:$PATH"
;;
esac
The /c/ghcup path is correct, but the .cabal one is not.
The text was updated successfully, but these errors were encountered:
jasagredo
changed the title
.ghcup/env file seems wrong in Windows/c/ghcup/env file seems wrong in Windows
Dec 21, 2023
Maybe I installed ghcup inside mingw (therefore using bootstrap-haskell) instead of inside powershell (so not using bootstrap-haskell.ps1)? that would probably be an important fact to know.
So it's sub-optimal. The problem is that cabal has differing defaults for the bin location, which depends on directory existence on your filesystem (bad implementation of the XDG spec: haskell/cabal#7386).
And cabal has also no proper cli interface to discover those locations afaik. Maybe @fendor knows more.
Yeah, I don't think there is currently a way. In cabal head there is now cabal path --installdir (we want to rework the command as the latest cabal meeting), and could be usable in the future.
I don't think I provided any particular flags when installing GHCup (it was some time ago, I could delete it and install it again) but I think the env file is somewhat wrong. My installation folders are
/c/ghcup
and/c/cabal
, however the script reads as follows:The
/c/ghcup
path is correct, but the.cabal
one is not.The text was updated successfully, but these errors were encountered: