`cabal install --lib` doesn't respect GHC's XDG setup
Open
cabal-install: cmd/install
re: install --lib
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
> `cabal install --lib ipprint` dumping things into `~/.ghc/{{host_double}}-{{ghc_ver}}/environments/default` with `stack ghci` and bare `ghci`, also not respecting XDG dirs and causing checking for `~/.config/ghc/ghci.conf` to be skipped because `~/.ghc/` exists.
_Originally posted by @skull-squadron in https://github.com/haskell/cabal/issues/10098#issuecomment-2423774962_
Contributor guide
Assessment
This issue has not been assessed yet.