Haskell Interactive Development in Emacs

Installation

Following haskell-mode.

  1. Use MELPA repository: add the following into ~/.emacs

(require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (package-initialize)

  1. M-x package-refresh-contents

  2. M-x package-install [RET] haskell-mode

Usage

  1. Open a haskell file in emacs;

  2. Use "C-c C-z" to open ghci (but there isn't a jump-back shortcut, you can use C-x o);

  3. 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

posted on 2014-03-17 18:21  leechau  阅读(279)  评论(0编辑  收藏  举报

导航