Cannot load properly haskell mode on Aquamacs

Arnaud Bailly arnaud.oqube at gmail.com
Fri Mar 21 17:48:21 GMT 2014


Hello,
I installed haskell mode from marmalade (13.7) and ghc (1.10.2). When I try
to load a .hs file, it opens but I got the following error message:

ghc-merge-keywords: Wrong type argument: listp, module

Here is my relevant part of .emacs file:

;; haskell coding
(require 'haskell-mode)
(require 'haskell-cabal)

(autoload 'ghc-init "ghc" nil t)

(add-hook 'haskell-mode-hook (lambda () (ghc-init) (flymake-mode)))

(eval-after-load "haskell-mode"
  '(progn
     (define-key haskell-mode-map (kbd "C-,") 'haskell-move-nested-left)
     (define-key haskell-mode-map (kbd "C-.") 'haskell-move-nested-right)
     (define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file)
     (define-key haskell-mode-map (kbd "C-c C-c") 'haskell-compile)
     (setq haskell-process-type 'cabal-repl
           haskell-process-args-cabal-repl '("--ghc-option=-ferror-spans"
                                                 "--with-ghc=ghci-ng"))
     (define-key haskell-mode-map (kbd "C-x C-d") nil)
     (define-key haskell-mode-map (kbd "C-c C-z")
'haskell-interactive-switch)
     (define-key haskell-mode-map (kbd "C-c C-l")
'haskell-process-load-file)
     (define-key haskell-mode-map (kbd "C-c C-b")
'haskell-interactive-switch)
     (define-key haskell-mode-map (kbd "C-c C-t") 'haskell-process-do-type)
     (define-key haskell-mode-map (kbd "C-c C-i") 'haskell-process-do-info)
     (define-key haskell-mode-map (kbd "C-c M-.") nil)
     (define-key haskell-mode-map (kbd "C-c C-d") nil)
     (define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file)
     (setq haskell-font-lock-symbols t)))

(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

(eval-after-load "which-func"
  '(add-to-list 'which-func-modes 'haskell-mode))

(eval-after-load "haskell-cabal"
    '(define-key haskell-cabal-mode-map (kbd "C-c C-c") 'haskell-compile))

Thanks for your help.

--
Arnaud Bailly
FoldLabs Associate: http://foldlabs.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskellmode-emacs/attachments/20140321/60da477e/attachment.htm>


More information about the Haskellmode-emacs mailing list