Now uses --package-db flag instead of the GHC_PACKAGE_PATH variable. I haven't updated the Emacs-Lisp.
Updated to support Cabal-1.16 (now uses --package-db= instead of the …
Woops, I didn't test that anything else than "cabal install" works, so this breaks "cabal update" etc. I might get time to write a fix soon
Only add --package-db= flags when performing configure, install and u…
Sorry for the delay, but with this new addition I think it is working okay. I have been using it for the last week without problems.
I just hit this issue. It would be great to have this pulled.
Does GHC itself still work, though, with these changes?
Another way to handle this, at least for older GHC, is to have GHC_PACKAGE_PATH in the environment, but have the cabal wrapper unset it; that way everything else should keep working.
Yeah, I've confirmed that while cabal works this way, ghc (7.4.2 at least) definitely does not. This can be fixed by setting GHC_PACKAGE_PATH as before, but adding "unset GHC_PACKAGE_PATH" just before running cabal (and having the --package-db= bits for cabal, of course).
Ugh. It's way more complicated than that. Given the missing maintainer, I'm moving this discussion to https://github.com/tmhedberg/hsenv
Merge remote-tracking branch 'github/dybber/master'
This merge enables compatibility with cabal-install v1.16, according to the
pull request discussion at #35.
Add a usage blurb about activating and deactivating the sandbox