How can I remove old build plans (GHC compiler and packages) installed by the stack tool?
By default stack installs packages to ~/. cabal and ~/. ghc in your home directory.
Stack-built files generally go in either the Stack root directory (default: ~/. stack on Unix-like operating systems, or, %LOCALAPPDATA%\Programs\stack on Windows) or ./. stack-work directories local to each project. The Stack root directory holds packages belonging to snapshots and any Stack-installed versions of GHC.
AFAIU stack is handy to quickly work on an existing project. If you start something from scratch, you will certainly have to use cabal.
You can find these sandboxed GHC installations in the ghc-* directories in the stack path --programs directory. If you would like Stack to use your system GHC installation, use the --system-ghc flag or run stack config set system-ghc --global true to make Stack check your PATH for a suitable GHC by default.
I would poke around ~/.stack and delete whatever files you don't want anymore:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With