serras / emacs-haskell-tutorial

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

ghc-init no longer exists in the "ghc" package #41

Closed martinvlk closed 8 years ago

martinvlk commented 8 years ago

Hi, I have been using your tutorial to setup my Haskell env in emacs and I could not find the ghc-init function to run at startup as suggested in the text.

I guess the tutorial needs to be updated to reflect changes in the ghc emacs package?

Martin

ghost commented 8 years ago

The following works for me, as of today:

(autoload 'ghc-init "ghc" nil t)
(autoload 'ghc-debug "ghc" nil t)
(add-hook 'haskell-mode-hook (lambda () (ghc-init)))

The same is suggested in the tutorial. Can you confirm that the ghc package is installed for you. Any error messages?

martinvlk commented 8 years ago

I have re-installed the "ghc" package, v 5.4.0.0 and now I seem to be up and running. Thanks for help, the problem was on my side, not in the tutorial.

M.