serras / emacs-haskell-tutorial

Tutorial on setting up Emacs to do Haskell programming
690 stars 100 forks source link

ghc-mod from (m)elpa has to match the cabal ghc-mod #32

Closed pmiddend closed 9 years ago

pmiddend commented 9 years ago

I just discovered that installing ghc-mod from cabal and installing the "ghc" package via package-install is not always a good idea since both might not work together.

I'm using ghc-mod from stackage-lts-2.9, which does not have the "legacy-interactive" command which is used by the "ghc" package from (m)elpa. So ghc-mod doesn't work for me (and, unfortunately, doesn't print a clear error message anywhere).

An alternative would be to use the .el files located in ~/.cabal/share/..., which correspond to the installed ghc-mod version. Maybe this should be advised in the tutorial?

serras commented 9 years ago

Thanks for reporting! I have added the information to the tutorial.