はじめに
インストール環境は以下のとうりです.
OS:Ubuntu12.04LTS
Emacs:24.1.1
GHCのインストール
$ sudo apt-get install ghc
$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 7.4.1
Emacsの設定
- haskell-modeのインストール
現在,haskell-modeはgithubで開発されているので,$ cd lib/elisp
$ git clone git://github.com/haskell/haskell-mode.git
- .emacsファイルの設定
(load “~/lib/elisp/haskell-mode/haskell-site-file”)
(add-hook ‘haskell-mode-hook ‘turn-on-haskell-doc-mode)
(add-hook ‘haskell-mode-hook ‘turn-on-haskell-indentation)
;;(add-hook ‘haskell-mode-hook ‘turn-on-haskell-indent)
;;(add-hook ‘haskell-mode-hook ‘turn-on-haskell-simple-indent)