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

Closed
bos opened this Issue May 24, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@bos
Contributor

bos commented May 24, 2012

(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

@ghost ghost assigned SyntaxPolice May 24, 2012

@bos

This comment has been minimized.

Show comment Hide comment
@bos

bos May 24, 2012

Contributor

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

a two-liner fix

Contributor

bos commented May 24, 2012

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

a two-liner fix

@bos

This comment has been minimized.

Show comment Hide comment
@bos

bos May 24, 2012

Contributor

(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
Contributor

bos commented May 24, 2012

(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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment