After installing GHCup’s haskell I installed the doctest package via cabal:
cabal install doctest
To my surprise it does install doctest
into ~/.cabal/bin
. I thought GHCup tools keep everything in ~/.ghcup/bin
. Does something go wrong?
After installing GHCup’s haskell I installed the doctest package via cabal:
cabal install doctest
To my surprise it does install doctest
into ~/.cabal/bin
. I thought GHCup tools keep everything in ~/.ghcup/bin
. Does something go wrong?
~/.ghcup/bin
is reserved for GHCup internal tools. Both directories are added to PATH (if you source ~/.ghcup/env
), so this is fine.
An alternative is using GHCUP_USE_XDG_DIRS
and then also tell cabal to install there, but I don’t recommend it.
GHCup
itself keeps everything in ~/.ghcup/bin. Other tools installed by it do their own thing with what they in turn install