[Haskell-cafe] How to direct cabal to use an alternative ghc version, ala stack?

Roman Cheplyaka roma at ro-che.info
Thu Sep 3 04:44:17 UTC 2015


On 03/09/15 04:12, Mikhail Glushenkov wrote:
> Hi,
> 
> On 3 September 2015 at 02:37, David Banas <capn.freako at gmail.com> wrote:
>> Hi all,
>>
>> 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?
> 
> 
> Try 'cabal install -w /path/to/ghc foo'.

Or simply add the path to ghc to PATH, as in

PATH=$HOME/.stack/programs/x86_64-linux/ghc-$VERSION/bin:$PATH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150903/537cc26a/attachment.sig>


More information about the Haskell-Cafe mailing list