-
Notifications
You must be signed in to change notification settings - Fork 175
OLD_README
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" . "https://stable.melpa.org/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
ghc-mod
works fine for users of Nix who follow a recent version of the
package database such as the nixos-15.09
or nixos-unstable
channel. Just
include the package ghc-mod
into your ghcWithPackages
environment like any
other library. The Nixpkgs Haskell User's
Guide
covers this subject in great detail.
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.
To customize the package databases used by ghc-mod
, put a file called ghc-mod.package-db-stack
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
.