Skip to content

Can I install multiple versions of cabal at once?

I would like to do both ghcup install-cabal 3.0.0.0 and ghcup install-cabal 2.4.0.0 and have the installed binaries not conflict with each other. Currently they both get installed as ~/.ghcup/bin/cabal so the cabal from the command that was run most recently is the only one which will be installed.

Is there an option I can use to install them as ~/.ghcup/bin/cabal-x.x.x.x or similar? If not, is there somewhere where I can learn about the rationale for that design?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information