Go to file
Kazu Yamamoto cac5260a0b fixing typo. 2013-04-24 15:16:48 +09:00
elisp C-M-d now can display functions and types in a browser. 2013-04-02 15:20:20 +09:00
test Add a test case for checking QuasiQuotes module 2013-04-01 15:55:29 +09:00
.ghci .ghci for ghci-friendliness (testing) 2012-01-22 20:16:22 -08:00
.gitignore add ignore entry 2012-09-27 14:32:41 -10:00
.travis.yml adding .travis.yml. 2013-02-12 14:04:32 +09:00
Browse.hs clean up the code for Doc/SDoc. 2013-03-12 22:15:23 +09:00
CabalApi.hs Fix spelling error 2013-04-13 07:46:34 -10:00
ChangeLog fixing typo. 2013-04-24 15:16:48 +09:00
Check.hs Defining checkSlowAndSet. 2013-03-15 14:40:36 +09:00
Cradle.hs cosmetic changes. 2013-04-10 14:46:58 +09:00
Debug.hs Disable fast check when QuasiQuotes is used 2013-04-01 15:59:53 +09:00
Doc.hs clean up the code for Doc/SDoc. 2013-03-12 22:15:23 +09:00
ErrMsg.hs Fixing a bug of TH expansion for GHC 7.6 (#92). 2013-03-16 11:50:45 +09:00
Flag.hs Adaptor layer for GHC API. 2012-02-14 16:09:53 +09:00
GHCApi.hs cosmetic change. 2013-04-10 15:05:46 +09:00
GHCChoice.hs Using io-choice. 2012-02-16 14:44:20 +09:00
GHCMod.hs using -no-user-package-db for GHC >= 7.6. 2013-04-24 14:58:14 +09:00
Gap.hs removing tracingDynFlags. 2013-03-13 10:54:50 +09:00
Info.hs cosmetic change from hlint. 2013-04-01 14:22:30 +09:00
LICENSE adding README and LICENSE. 2010-03-10 12:13:03 +09:00
Lang.hs Adaptor layer for GHC API. 2012-02-14 16:09:53 +09:00
Lint.hs cosmetic changes. 2013-03-12 16:19:44 +09:00
List.hs refactoring GHCApi. 2013-03-04 13:41:56 +09:00
README Updateing README. 2013-03-03 15:55:22 +09:00
Setup.hs adding Setup.hs. 2010-04-03 00:16:22 +09:00
Types.hs fixing "ghc-mod info" for non-export funcs and fast/slow checking. 2013-04-01 14:16:34 +09:00
ghc-mod.cabal ver bumps up. 2013-04-02 15:27:42 +09:00
hcar-ghc-mod.tex Adding HCAR tex file. 2013-04-24 15:12:53 +09:00

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

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/