I have packaged haskell-mode for easy installation on Red Hat Linux and similar systems. Once you install the package, there will be no need to modify your .emacs file in order to use the features of haskell-mode -- they will be enabled by default when you start Emacs.
One thing you might want to change, however, is the Haskell interpreter that is used for interactive Haskell features. Hugs is the default. If you wish to use GHCi instead, add the following to your .emacs file:
; use GHCi mode instead of Hugs mode
(add-hook 'haskell-mode-hook 'turn-on-haskell-ghci t)
This package was built under Emacs 21. If you have problems running it under another flavor of Emacs, download the Source RPM below and rebuild it. Usually, however, this package should be all your need.
To rebuild a Binary RPM from the Source RPM, follow this simple procedure:
$ echo %_topdir ~/rpm > ~/.rpmmacros
$ mkdir ~/rpm/{BUILD,SOURCES,SRPMS,RPMS,SPECS}
$ mkdir ~/rpm/RPMS/noarch
$ rpm --rebuild emacs-haskell-mode-1.43-4align.src.rpm
emacs-haskell-mode.spec (5 kB)
If you add the above RPM spec file to the haskell-mode distribution tarball, you should be able to rebuild the RPMs directly from the tarball by using the following command:
$ rpm -ta haskell-mode-1.42.tar.gzThis file is mainly useful for developers of RPM packages and the maintainers of the haskell-mode tarballs.