Hi Michael, On Mon, Sep 26, 2016 at 12:32 PM, Michael Snoyman wrote:
> For those wanting to have direct access to GHC and other such tools, > without needing to prefix calls with `stack exec -- `, the following added > to your ~/.bashrc (or equivalent) will do the trick: > > export PATH=`stack path --bin-path` This is not the side-effect-free function I expected it to be. I just tried it on a Mac after a new install of stack: $ stack path --bin-path Run from outside a project, using implicit global project config Using resolver: lts-7.0 from implicit global project's config file: ~/.stack/global-project/stack.yaml Fetched package index. Populated index cache. No compiler found, expected minor version match with ghc-8.0.1 (x86_64) (based on resolver setting in /Users/leather/.stack/global-project/stack.yaml). Try running "stack setup" to install the correct GHC into ~/.stack/programs/x86_64-osx/ The above took nearly 10 minutes and failed. I would not recommend doing that in a ~/.bashrc. See https://github.com/commercialhaskell/stack/issues/2325 for the issue I reported in July. Regards, Sean
_______________________________________________ Haskell-community mailing list Haskell-community@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-community