[Haskell-cafe] ANN: haskell-mode 2.5

Colin Paul Adams colin at colina.demon.co.uk
Tue Oct 27 15:31:25 EDT 2009

>>>>> "Svein" == Svein Ove Aas <svein.ove at aas.no> writes:

    Svein> Known bugs: * Occasionally, the haskell-indentation parser
    Svein> will get stuck   on what it considers to be invalid haskell

Quite often.

    Svein> code, and refuse to accept your commands; this includes,
    Svein> mainly, haskell-newline-and-indent. To avoid annoyance, if
    Svein> you bind RET to haskell-newline-and-indent, you should bind

I don't, but haskell-indentation.el does.

    Svein> M-RET to plain newline.

So perhaps the mode should also do this? here's a patch:

-- haskell-indentation.el~	2009-10-27 19:27:40.000000000 +0000
+++ haskell-indentation.el	2009-10-27 19:29:43.000000000 +0000
@@ -67,7 +67,7 @@
 (defconst haskell-indentation-mode-map
   (let ((keymap (make-sparse-keymap)))
     (define-key keymap [?\r] 'haskell-newline-and-indent)
-    (define-key keymap [?\M-r] 'newline)
+    (define-key keymap [?\M-\r] 'newline)
     (define-key keymap [backspace] 'haskell-indentation-delete-backward-char)
     (define-key keymap [?\C-d] 'haskell-indentation-delete-char)

Colin Adams
Preston Lancashire

More information about the Haskell-Cafe mailing list