https://github.com/calvinchengx/ghc-mod
Here there be rebases -- don't clone; submit PRs to kazu-yamamoto/ghc-mod
https://github.com/calvinchengx/ghc-mod
Last synced: 5 months ago
JSON representation
Here there be rebases -- don't clone; submit PRs to kazu-yamamoto/ghc-mod
- Host: GitHub
- URL: https://github.com/calvinchengx/ghc-mod
- Owner: calvinchengx
- License: other
- Fork: true (DanielG/ghc-mod)
- Created: 2015-07-02T02:41:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-02T02:42:20.000Z (almost 10 years ago)
- Last Synced: 2023-03-10T21:57:48.570Z (over 2 years ago)
- Language: Haskell
- Homepage:
- Size: 1.93 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.AGPL3
Awesome Lists containing this project
README
# Happy Haskell Programming
[](https://travis-ci.org/kazu-yamamoto/ghc-mod)Please read: [http://www.mew.org/~kazu/proj/ghc-mod/](http://www.mew.org/~kazu/proj/ghc-mod/)
## Using the stable version
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`:
```elisp
(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:```shell
% 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)](https://kiwiirc.com/client/irc.freenode.org/ghc-mod) on
Freenode. If you're reporting a bug please also create an issue
[here](https://github.com/kazu-yamamoto/ghc-mod/issues) 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.