GHCup's cabal does install into .cabal

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?

2 Likes

~/.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.

4 Likes

GHCup itself keeps everything in ~/.ghcup/bin. Other tools installed by it do their own thing with what they in turn install :slight_smile:

2 Likes