<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 3:37 AM, David Banas <span dir="ltr"><<a href="mailto:capn.freako@gmail.com" target="_blank">capn.freako@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi all,<div><br></div><div>How do I direct cabal to use an alternative (i.e. - not my system’s default) version of ghc, which I’ve installed, via stack?</div><div><br></div><div>I tried this:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style="margin:0px;font-size:11px;font-family:Menlo">stack exec cabal install ...</div></blockquote><div><br></div><div>but got this:</div><div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div style="margin:0px;font-size:11px;font-family:Menlo">cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with</div></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">Cabal. Use the flag --package-db to specify a package database (it can be used</div></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">multiple times).</div></div></blockquote><div><br></div><div>Thanks,</div><div>-db</div><div><br></div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">We have a flag to working better with cabal, you can try:<br><br></div><div class="gmail_extra"> stack exec --no-ghc-package-path -- cabal install<br><br></div><div class="gmail_extra">I'm under the impression that there are changes planned to cabal (possibly already implemented but not released) that will allow it to function nicely with the GHC_PACKAGE_PATH environment variable, but I'm uncertain if that's true.<br><br></div><div class="gmail_extra">Michael<br></div></div>