ghc-mod/README.md

51 lines
1.5 KiB
Markdown
Raw Normal View History

2013-05-22 03:04:05 +00:00
# Happy Haskell Programming
2014-01-08 07:19:53 +00:00
[![Build Status](https://travis-ci.org/kazu-yamamoto/ghc-mod.png)](https://travis-ci.org/kazu-yamamoto/ghc-mod)
2013-05-22 03:04:05 +00:00
Please read: [http://www.mew.org/~kazu/proj/ghc-mod/](http://www.mew.org/~kazu/proj/ghc-mod/)
2013-05-22 03:04:05 +00:00
2014-05-19 07:42:34 +00:00
## Using the stable version
2014-09-12 05:02:34 +00:00
The Emacs front-end is available from
[*stable* MELPA](http://melpa-stable.milkbox.net/). 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`:
2014-05-19 07:25:38 +00:00
```elisp
(require 'package)
2014-09-12 05:02:34 +00:00
(add-to-list 'package-archives
2014-05-19 07:25:38 +00:00
'("melpa" . "http://melpa-stable.milkbox.net/packages/"))
(package-initialize)
```
2014-09-12 05:02:34 +00:00
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:
2014-05-19 07:25:38 +00:00
```shell
2014-09-12 05:02:34 +00:00
% cabal update && cabal install ghc-mod
2014-05-19 07:25:38 +00:00
```
2014-05-19 07:35:38 +00:00
2014-12-16 20:34:04 +00:00
### 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
2014-09-12 05:02:34 +00:00
## 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
2014-05-19 07:35:38 +00:00
2014-09-12 05:02:34 +00:00
If you have any problems, suggestions, comments swing by
[#ghc-mod](irc://chat.freenode.net/ghc-mod) on Freenode.