Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Happy Haskell programming on Emacs
Haskell Emacs Lisp

This branch is 1154 commits behind kazu-yamamoto:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
elisp
test
.ghci
.gitignore
.travis.yml
Browse.hs
Cabal.hs
CabalApi.hs
CabalDev.hs
ChangeLog
Check.hs
ErrMsg.hs
Flag.hs
GHCApi.hs
GHCChoice.hs
GHCMod.hs
Gap.hs
Info.hs
LICENSE
Lang.hs
Lint.hs
List.hs
README
Setup.hs
Types.hs
ghc-mod.cabal

README

		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)))


Changes:

  If you have customized GHC import-path like follows,

    (setq ghc-flymake-check-includes '("dir1" "dir2"))

  You may update your settings as follows.

    (setq ghc-ghc-options '("-idir1" "-idir2"))

    or

    (setq ghc-ghc-options '("-idir1:dir2"))

  Now, you can simply pass GHC options to ghc-mod sub-commands.


For more information, see:
	http://www.mew.org/~kazu/proj/ghc-mod/
Something went wrong with that request. Please try again.