2 Installation

Download and unpack the basic mode and modules into a suitable directory, e.g. ~/lib/emacs/haskell-mode/ where ~ stands for your home directory.

Assuming you have placed the basic mode haskell-mode.el and the modules you want to use in the directory ~/lib/emacs/haskell-mode/, add the following command to your init file (~/.emacs):

(load "~/lib/emacs/haskell-mode/haskell-site-file")

adding the following lines according to which modules you want to use. They are all optional.

(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)

You should choose an indentation mode by uncommenting (remove the ";;") at the start of one of the lines. Note that the three indentation modules are mutually exclusive - add at most one. Note that the line of code for simple indentation is commented out (using a preceding ;) in preference for the more advanced indentation module.