Cabal semantics for multiple compilers

Duncan Coutts duncan.coutts at
Sun Mar 9 20:25:19 EDT 2008

On Mon, 2008-03-10 at 01:37 +0200, Yitzchak Gale wrote:

> Duncan Coutts wrote:
> > It will use whichever is the ghc-6.8.2 on the $PATH.
> They'll both be in $PATH. So do you mean the first
> one? Will that work consistently throughout the install
> process?


> >> Second question: When I install packages, both copies
> >> of GHC 6.8.2 will want to install them into /usr/local. Cabal
> >> uses directory names like "ghc-6.8.2" to keep installations
> >> for different compilers separate from each other. But what
> >> if both of the compilers are called "ghc-6.8.2"?
> > Then they will clash. Don't do that :-)
> Ouch. I was afraid of that. This is going to be tricky.

Remember of course that you can do per-user installs. Indeed it's much
easier, cabal-install does that by default.


More information about the Libraries mailing list