New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with-haddock not recognized in ~/.cabal/config #1328

Closed
wrengr opened this Issue May 11, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@wrengr
Copy link

wrengr commented May 11, 2013

When using a custom setup (therefore, the desired haddock executable isn't the one in $PATH) the with-haddock field isn't recognized in the cabal-install configuration file. My current setup is as follows, though this has been an issue for a while.

OS X: 10.5.8
ghc: 7.6.1
cabal-install: 1.16.0.2
Cabal library: 1.16.0.3

@23Skidoo

This comment has been minimized.

Copy link
Member

23Skidoo commented May 12, 2013

If you're running runhaskell Setup.hs directly, then it won't read ~/.cabal/config.

It'd also help if you could show us the contents of your Setup.hs.

@wrengr

This comment has been minimized.

Copy link

wrengr commented May 13, 2013

This is using the cabal-install executable, and the contents of Setup.hs are irrelevant (the bug affects all packages including local ones and ones from Hackage).

Edit: By "using a custom setup" I meant a custom installation of ghc etc. I have multiple versions of the Haskell toolchain installed in order to perform regression tests etc. Therefore, I'd like to be able to just swap out the ~/.cabal/config file in order to use cabal-install for each of these different installations. However, this doesn't work because the with-haddock field isn't recognized, so documentation can only be auto-installed for the toolchain which happens to go with the haddock in $PATH.

23Skidoo added a commit to 23Skidoo/cabal that referenced this issue May 18, 2013

@ghost ghost assigned 23Skidoo May 21, 2013

23Skidoo added a commit to 23Skidoo/cabal that referenced this issue May 27, 2013

23Skidoo added a commit to 23Skidoo/cabal that referenced this issue May 29, 2013

23Skidoo added a commit to 23Skidoo/cabal that referenced this issue May 30, 2013

23Skidoo added a commit to 23Skidoo/cabal that referenced this issue May 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment