Haskell Interactive Development in Emacs

Installation

Following haskell-mode.git

  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)github

  1. M-x package-refresh-contentsui

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

Usage

  1. Open a haskell file in emacs;ci

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

  3. Use "C-c C-l" to load file (same as ":l "); emacs

However, there isn't tab-completion in the ghci invoked by "C-c C-z", so you can start a console to run ghci;it

User Manual

M-x info-display-manual [RET] haskell-modeio

相關文章
相關標籤/搜索