[Haskell-cafe] Which ghc binary does ghc-mod use?

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Tue Jul 24 01:24:40 CEST 2012


On 24 July 2012 04:06, Peter Simons <simons at cryp.to> wrote:
> Hi,
>
> I am a happy user of Emacs with ghc-mod for Haskell programming. There is just
> one issue I've run into: I have multiple versions of GHC installed on my
> machine. Now, ghc-mod seems to use the GHC binary that was used to compile
> ghc-mod itself, but that is not the version I want it to use for syntax
> checking, etc. In fact, I want to be able to switch ghc-mod between different
> GHC binaries depending on which project I'm working on, but I have no idea how
> to do that.
>
> Is there maybe some Elisp guru reading this list who can help me out? Can I
> somehow configure which GHC binary ghc-mod uses?

Just to get the potentially obvious out of the way: are you sure it's
not a matter of which ghc it finds first in the PATH?  It might even
be using the internal emacs PATH: (getenv "PATH")

>
> Take care,
> Peter
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list