DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

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)
    
  2. M-x package-refresh-contents

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



Published

Dec 16, 2013

Last Updated

Dec 16, 2013

Category

Tech

Tags

  • emacs 22
  • Haskell 11

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor