Go to file
Anthony Cowley 78c5cea161 DeferErrors implies DeferTypedHoles in GHC >= 7.10
The Opt_DeferErrors flag should imply Opt_DeferTypedHoles. The proper
API for setting these flags that implements such implications is
unfortunately not exposed by GHC.
2015-08-17 15:14:44 -04:00
doc fixing doc. 2015-08-14 17:08:14 +09:00
elisp Merge branch 'master' of github.com:kazu-yamamoto/ghc-mod 2015-08-14 10:38:23 +02:00
Language/Haskell DeferErrors implies DeferTypedHoles in GHC >= 7.10 2015-08-17 15:14:44 -04:00
NotCPP Bring test suite up to date 2015-03-05 17:35:28 +01:00
scripts Update bump.sh 2015-06-07 00:07:59 +02:00
src Add FileMapping commands description to ghc-mod main. 2015-08-16 23:28:45 +03:00
test Fix some warnings 2015-08-17 07:03:32 +02:00
test-elisp adding test cases for elisp. 2014-04-23 14:51:02 +09:00
.ghci .ghci for ghci-friendliness (testing) 2012-01-22 20:16:22 -08:00
.gitignore Expose functions for integration with HaRe 2015-08-13 09:49:51 +02:00
.travis.yml travis: Use cabal-helper git 2015-08-12 07:12:12 +02:00
CodingStyle adding CodingStyle. 2014-08-12 15:00:56 +09:00
COPYING.AGPL3 Change primary license to AGPL-3 2015-03-03 21:09:18 +01:00
COPYING.BSD3 Change primary license to AGPL-3 2015-03-03 21:09:18 +01:00
ghc-mod.cabal Add new test-files to .cabal 2015-08-17 00:26:43 +03:00
ghcmodHappyHaskellProgram-Dg.tex Update HCAR entry 2015-06-02 12:27:08 +02:00
LICENSE Add back LICENSE file pointing to COPYING.* 2015-03-05 17:35:29 +01:00
README.md Fix link in README 2015-05-24 21:58:24 +02:00
Setup.hs Fix X-Install-Target for older Cabal versions 2015-04-15 13:13:00 +02:00
SetupCompat.hs SetupCompat.hs: remove dependnece on mtl 2015-03-28 19:13:51 +01:00
Utils.hs Fix GHC 7.10 warnings 2015-08-03 05:46:51 +02:00

Happy Haskell Programming

Build Status

Please read: http://www.mew.org/~kazu/proj/ghc-mod/

Using the stable version

The Emacs front-end is available from stable MELPA. This package should always be compatible with the latest version of ghc-mod from hackage.

To use stable stable MELPA add this to your .emacs:

(require 'package)
(add-to-list 'package-archives
	     '("melpa" . "http://melpa-stable.milkbox.net/packages/"))
(package-initialize)

With this configuration you can install the Emacs front end from MELPA (the package is called ghc there, not ghc-mod) and install the ghc-mod/ghc-modi binaries from hackage by doing:

% cabal update && cabal install ghc-mod

Nix & NixOS

The installation is a little more involved in this environment as Nix needs some ugly hacks to get packages using the GHC API to work, please refer to this stackoverflow answer:

http://stackoverflow.com/a/24228830

Using the development version

The easiest way to hack on ghc-mod is compile it, then add dist/build/ghc-mod and dist/build/ghc-modi to your PATH and add the elisp/ directory to your Emacs load-path.

Make sure you're not using the MELPA version of ghc.el otherwise you might get all sorts of nasty conflicts.

Custom ghc-mod cradle

To customize the package databases used by ghc-mod, put a file called ghc-mod.cradle beside the .cabal file with the following syntax:

temp directory root
package db 1
...
package db n

each package database line is either a path to a package database, or global or user.

IRC

If you have any problems, suggestions, comments swing by #ghc-mod (web client) on Freenode. If you're reporting a bug please also create an issue here so we have a way to contact you if you don't have time to stay.

Do hang around for a while if no one answers and repeat your question if you still haven't gotten any answer after a day or so. You're most likely to get an answer during the day in GMT+1.