Cannot load properly haskell mode on Aquamacs
Ivan Lazar Miljenovic
ivan.miljenovic at gmail.com
Fri Mar 21 21:56:06 GMT 2014
On 22 March 2014 04:48, Arnaud Bailly <arnaud.oqube at gmail.com> wrote:
> 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
Looks like an issue with ghc-mod rather than haskell-mode.
>
> 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
>
> _______________________________________________
> Haskellmode-emacs mailing list
> Haskellmode-emacs at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs
>
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com
More information about the Haskellmode-emacs
mailing list