ghc-mod install

memo

  1. cabal update
  2. cabal install happy --global
  3. cabal install ghc-mod --global


ぐぅ、このやり方嫌いなんだけど、どーにかしたい。

;; ghc-mod
(cond
 ((eq window-system 'w32)
  (setq ghc-module-command "C:/Program Files (x86)/Haskell/bin"))
 ((or (eq window-system 'ns) (eq window-system 'mac))
  (setq ghc-module-command "~/Library/Haskell/bin/ghc-mod")))
(autoload 'ghc-init "ghc" nil t)
(add-hook 'haskell-mode-hook (lambda () (ghc-init)))