Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Emacs mode for Haskell
Emacs Lisp Makefile

Merge pull request #785 from ocecaco/bugfix-cabal-get-dir-default

Determine proper default Cabal directory when no Cabal project
latest commit 6d941ee840
@gracjan gracjan authored
Failed to load latest commit information.
doc keybindings | haskell-mode: use M-n / M-p for error/warning overlay n…
images Add png versions of haskell-mode.svg.
tests Add haskell-indentation tests for off-side rule
.gitignore Add support for embedding git version in texinfo manual
.travis.yml Use texinfo build from ppa
CONTRIBUTING.md Add CONTRIBUTING.md file
COPYING Add GNU GPL text file
Makefile Add haskell-lexeme.el.
NEWS Write NEWS for 13.12 release.
README.md added some help about cl-lib for emacs23
ghc-core.el Add missing autoload cookies
ghci-script-mode.el Fix docstring position
haskell-align-imports.el Update all unicode counterparts
haskell-bot.el Fix incorrect comment.
haskell-cabal.el Determine proper default Cabal directory when no Cabal project
haskell-checkers.el Adjust checkers namespace to haskell-
haskell-collapse.el Use syntax-ppss to detect when in a string or comment
haskell-commands.el Put functions in proper place, rename others
haskell-compat.el use `xref-find-definitons' instead of `find-tag'
haskell-compile.el Use && instead of ; because this works on Windows, too (refs #232)
haskell-complete-module.el Accept anything on RET when there's no match in module completion
haskell-completions.el Define completion at point function
haskell-customize.el Var to enable/disable prompts on starting REPL
haskell-debug.el Add trace function
haskell-decl-scan.el mark various turn-on-haskell-* functions obsolete
haskell-doc.el mark various turn-on-haskell-* functions obsolete
haskell-font-lock.el defconst to defcustom
haskell-indent.el Revert "use more efficient looking-at-p instead of looking-at in most…
haskell-indentation.el Implement off-side rule (more) properly
haskell-interactive-mode.el Inhibit read-only when writing to process log
haskell-lexeme.el Add haskell-lexeme.el.
haskell-load.el Correctly match 'stack-ghci when running cabal.
haskell-menu.el Fix keymap in haskell-menu
haskell-mode-pkg.el Bump version on master to 13.15-git
haskell-mode.el Add haskell-forward-sexp
haskell-modules.el Remove all mentions of cabal-dev.
haskell-move-nested.el Fix indentation in all .el files
haskell-navigate-imports.el Make navigate-imports a bit more useful in absense of import list
haskell-package.el Remove all mentions of cabal-dev.
haskell-presentation-mode.el Proper presentation buffer retrieval
haskell-process.el Add optional candidates limit arg, remove unused item from result
haskell-repl.el Fix evil-mode results,
haskell-sandbox.el Import completion mapping and sandboxes
haskell-session.el Var to enable/disable prompts on starting REPL
haskell-simple-indent.el mark various turn-on-haskell-* functions obsolete
haskell-sort-imports.el Fix copy-list
haskell-string.el Clean up haskell-string.el utiliy module.
haskell-unicode-input-method.el Fix indentation in all .el files
haskell-utils.el Var to enable/disable prompts on starting REPL
haskell.el keybindings | haskell-mode: use M-n / M-p for error/warning overlay n…
highlight-uses-mode.el Implement simple buffer-local name refactoring
inf-haskell.el Dealt with `haskell-ident-at-point` returning nil.
logo.svg Use notifications.el rather than notify.el (as it ships with Emacs)
w3m-haddock.el Fix w3m-haddock in the case of no local files

README.md

Haskell Mode Logo

Haskell Mode for Emacs

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

Build Status Melpa Status Melpa Stable Status

Installation

haskell-mode is best installed as a package.

To install haskell-mode you need to add a package archive repository that distributes haskell-mode. Execute

M-x customize-option RET package-archives

and add

Archive name: melpa-stable
URL or directory name: http://stable.melpa.org/packages/

Fetch list of packages with

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.

You need to enable indentation as this does not happen automatically currently. Add this line to your ~/.emacs file:

(add-hook 'haskell-mode-hook 'haskell-indentation-mode)

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 versions 23, 24 and upcoming 25 (snapshot).

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.

Emacs23 requires an the use of "cl-lib". cl-lib.el can be found in the tests/compat directory. Copy cl-lib.el to your emacs directory, e.g. ~/.emacs.d directory and put

(add-to-list 'load-path "~/.emacs.d/")
(require 'cl-lib)

in your .emacs file.

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/")

Contributing

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

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

Getting in contact

Have fun!

Something went wrong with that request. Please try again.