<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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></body></html>