Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

cabal-install does not use --with-hc and --with-hc-pkg options when installing packages #113

Closed
bos opened this Issue · 2 comments

2 participants

@bos
Owner

(Imported from Trac #121, reported by mnislaih on 2007-03-30)

cabal-install understands the --with-hc and --with-hc-pkg options, but seems to be ignoring them. I have ghc 6.6 and 6.7 coexisting in my system, and find that cabal-install will only install packages to the first one in $PATH, no matter what value these options are given.

I don't think this the expected behaviour, but maybe I'm wrong. I will include a patch too

@SyntaxPolice SyntaxPolice was assigned
@bos
Owner

(Imported comment by mnislaih on 2007-03-30)

a two-liner fix

@bos
Owner

(Imported comment by mnislaih on 2007-03-30)

It turns out that I was misunderstanding the way options to cabal-install work. I learnt that you have to pass the -with-hc and -with-hc-pgk options after the install command. Otherwise they are interpreted as options to cabal-install.

To sum up, this is what I wanted:

cabal-install install --user --with-hc=my-ghc --with-hc-pkg=my-ghc-pkg binary
Which is totally different from this:
cabal-install --user --with-hc=my-ghc --with-hc-pkg=my-ghc-pkg install binary
@bos bos closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.