Go to file
Daniel Gröber 52e3233f44 Introducing cabal-helper-wrapper
The idea here is to build cabal-helper with whatever version of Cabal
the user happens to be using (which we find by looking at
dist/setup-config) at runtime.

This way we can support literally any version of Cabal as long as the
actual cabal-helper still compiles.

I tried to only use interfaces in Cabal that have been there since at
least 1.16 so I'm hoping this shouldn't break too much.
2015-03-03 21:06:58 +01:00
cabal-helper Introducing cabal-helper-wrapper 2015-03-03 21:06:58 +01:00
doc adding docs in the piki format. 2014-11-19 09:07:34 +09:00
elisp Merge pull request #409 from iquiw/master 2014-12-01 11:48:42 +09:00
Language/Haskell Use cabal-helper to support Cabal >= 1.22 with any version of ghc 2015-02-08 12:43:35 +01:00
NotCPP Use crazy TemplateHaskell magic for Setup.hs backwards compatibility 2015-03-01 05:03:04 +01:00
scripts Add bump.sh script to master branch too 2014-12-31 22:57:53 +01:00
src Introducing cabal-helper-wrapper 2015-03-03 21:06:58 +01:00
test Bring test suite up to date 2015-02-08 12:43:35 +01: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 Add add-source-timestamps to gitignore 2014-05-04 04:57:38 +02:00
.travis.yml travis: Create empty ChangeLog before running cabal sdist 2014-09-12 22:23:48 +02:00
CodingStyle adding CodingStyle. 2014-08-12 15:00:56 +09:00
ghc-mod.cabal Introducing cabal-helper-wrapper 2015-03-03 21:06:58 +01:00
hcar-ghc-mod.tex hcar 2014-10-08 16:30:23 +02:00
LICENSE adding README and LICENSE. 2010-03-10 12:13:03 +09:00
README.md Add installation note about Nix 2014-12-16 21:34:04 +01:00
Setup.hs Use crazy TemplateHaskell magic for Setup.hs backwards compatibility 2015-03-01 05:03:04 +01:00
SetupCompat.hs Use crazy TemplateHaskell magic for Setup.hs backwards compatibility 2015-03-01 05:03:04 +01: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.

IRC

If you have any problems, suggestions, comments swing by #ghc-mod on Freenode.