Haskell Interactive Development in Emacs
Installation
Following haskell-mode.
- Use MELPA repository: add the following into ~/.emacs
(require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (package-initialize)
-
M-x package-refresh-contents
-
M-x package-install [RET] haskell-mode
Usage
-
Open a haskell file in emacs;
-
Use "C-c C-z" to open ghci (but there isn't a jump-back shortcut, you can use C-x o);
-
Use "C-c C-l" to load file (same as ":l
");
However, there isn't tab-completion in the ghci invoked by "C-c C-z", so you can start a console to run ghci;
User Manual
M-x info-display-manual [RET] haskell-mode