forked from DanielG/ghc-mod
/
README
39 lines (23 loc) · 952 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Happy Haskell programming on Emacs/Vim
For Vim users: see https://github.com/eagletmt/ghcmod-vim
For Emacs users: read the followings:
Features:
1) Completions of keyword, module, class, function, types,
language extensions, etc.
2) Flymake with GHC and hlint
3) Inserting code template
The "ghc-mod" program written in Haskell is a backend to gather
information from GHC and hlint.
Elisp libraries including ghc-mod is an extension to haskell-mode.
You should put the followings in your "~/.emacs.el":
(autoload 'ghc-init "ghc" nil t)
(add-hook 'haskell-mode-hook (lambda () (ghc-init)))
or
(add-hook 'haskell-mode-hook (lambda () (ghc-init) (flymake-mode)))
Customization:
An example to specify GHC options:
(setq ghc-ghc-options '("-idir1" "-idir2"))
An example to specify HLint options:
(setq ghc-hlint-options '("--ignore=Use camelCase"))
For more information, see:
http://www.mew.org/~kazu/proj/ghc-mod/