Emacs mode for Haskell


License: GPL-3.0

Language: Emacs Lisp

Haskell Mode for Emacs

This is an Emacs mode for editing, debugging and developing Haskell programs. Home page.

Coverage Status Build Status Build status Melpa Status Melpa Stable Status License GPL3 Twitter Follow

I just want to thank everybody involved in one way or another with the Haskell Emacs tooling. It is one of the best language experiences I had in Emacs. -- cocreature, 2015-03-01

I've been using it for a long time and love it. Great work on haskell-mode! Keep up the good work! -- LukeHoersten, 2015-04-02

This sounds wonderful. Does anything similar exist for Vim? -- earldouglas, 2015-07-02

Users manual: latest version, older versions: 13.12, 13.14, 13.16, 13.18, 13.20.

Quick Installation

Make sure you have this in your init file (usually ~/.emacs). If you already have custom-set-variables, merge its contents:

(require 'package)
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
    (("gnu" . "http://elpa.gnu.org/packages/")
     ("melpa-stable" . "http://stable.melpa.org/packages/")))))

Then run emacs, and evaluate:

M-x package-refresh-contents

and then follow by

M-x package-install RET haskell-mode

Voila! haskell-mode is installed! You should be able to edit Haskell source code in color now.

Haskell-mode has much much much more to offer but the above should get you going!

Advanced configuration

For setup instructions, please consult the integrated haskell-mode Info manual which can be accessed after installation via M-x info-display-manual [RET] haskell-mode. Alternatively, you can also direct your browser to the the online haskell-mode manual for setup and user guide.

Installation - more information

haskell-mode supports GNU Emacs version 24.3 or later.

haskell-mode is available from melpa-stable (releases) and melpa (git snapshots).

Other means of obtaining haskell-mode include el-get, Emacs Prelude and Debian package.

Installation from git repository

Running haskell-mode directly from sources is easy but requires a little preparation:

  • git clone https://github.com/haskell/haskell-mode.git into a suitable directory, e.g. ~/lib/emacs/haskell-mode/ where ~ stands for your home directory.

  • Assuming you have unpacked the various haskell-mode modules (haskell-mode.el and the rest) in the directory ~/lib/emacs/haskell-mode/, you need to generate various files, the autoloads file (haskell-mode-autoloads.el) is one among them. Invoke:

make EMACS=/path/to/your/emacs

and then adding the following command to your .emacs:

(add-to-list 'load-path "~/lib/emacs/haskell-mode/")
(require 'haskell-mode-autoloads)
(add-to-list 'Info-default-directory-list "~/lib/emacs/haskell-mode/")


If you followed the above you are just a couple of steps away from contributing to haskell-mode.

haskell-mode is actively seeking contributions from users of haskell-mode. For more information have a look at the wiki page on contributing.

Getting in contact

Have fun!

Project Statistics

Sourcerank 9
Repository Size 6.77 MB
Stars 934
Forks 284
Watchers 59
Open issues 154
Dependencies 0
Contributors 155
Tags 39
Last updated
Last pushed

Top Contributors See all

Gracjan Polak Chris Done Herbert Valerio Riedel Артур Файзрахманов Steve Purcell Svein Ove Aas fice-t Daniel Bergey Kosyrev Serge Kirill Ignatiev Gregory Collins Luke Hoersten Alexandru Scvortov Sergey Vinokurov Rüdiger Sonderfeld Fanael Linithien Dave Love Chris Gregory Ivan Lazar Miljenovic mrBliss

Packages Referencing this Repo

A Haskell editing mode
Latest release v16.1 - Published - 934 stars

Recent Tags See all

v16.1 September 15, 2016
v13.20.1 July 24, 2016
v13.20 April 10, 2016
v13.18 January 22, 2016
v13.16 December 01, 2015
v13.14.2 June 05, 2015
v13.14.1 June 05, 2015
v13.14 May 30, 2015
pathetic-annotated-tag March 15, 2015
pathetic-tag March 15, 2015
v13.12 March 11, 2015
v13.10 December 11, 2013
v13.08 September 02, 2013
v13.07 June 30, 2013
v13.06 June 01, 2013

Interesting Forks See all

Emacs mode for PureScript
Emacs Lisp - Last pushed - 40 stars - 10 forks
A Haskell editing mode
Emacs Lisp - GPL-3.0 - Last pushed - 1 stars - 1 forks
Emacs Interactive mode for Haskell
Emacs Lisp - Last pushed - 1 stars
Emacs mode for Haskell
Emacs Lisp - Last pushed - 1 stars
Emacs mode for Haskell
Emacs Lisp - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-06-28 20:52:20 UTC

Login to resync this repository