@@ -517,16 +517,17 @@ and indent when all of the following are true:
517517 " Translation from UnicodeSyntax tokens to their ASCII representation." )
518518
519519(defconst haskell-indentation-toplevel-list
520- `((" module" . haskell-indentation-module)
521- (" data" . haskell-indentation-data)
522- (" type" . haskell-indentation-data)
523- (" newtype" . haskell-indentation-data)
524- (" import" . haskell-indentation-import)
525- (" foreign" . haskell-indentation-foreign)
526- (" where" . haskell-indentation-toplevel-where)
527- (" class" . haskell-indentation-class-declaration)
528- (" instance" . haskell-indentation-class-declaration)
529- (" deriving" . haskell-indentation-deriving))
520+ `((" module" . haskell-indentation-module)
521+ (" signature" . haskell-indentation-module)
522+ (" data" . haskell-indentation-data)
523+ (" type" . haskell-indentation-data)
524+ (" newtype" . haskell-indentation-data)
525+ (" import" . haskell-indentation-import)
526+ (" foreign" . haskell-indentation-foreign)
527+ (" where" . haskell-indentation-toplevel-where)
528+ (" class" . haskell-indentation-class-declaration)
529+ (" instance" . haskell-indentation-class-declaration)
530+ (" deriving" . haskell-indentation-deriving))
530531 " Alist of toplevel keywords with associated parsers." )
531532
532533(defconst haskell-indentation-type-list
@@ -1217,7 +1218,7 @@ line."
12171218
12181219(defun haskell-indentation-peek-token ()
12191220 " Return token starting at point."
1220- (cond ((looking-at " \\ (if\\ |then\\ |else\\ |let\\ |in\\ |mdo\\ |rec\\ |do\\ |proc\\ |case\\ |of\\ |where\\ |module\\ |deriving\\ |import\\ |data\\ |type\\ |newtype\\ |class\\ |instance\\ )\\ ([^[:alnum:]'_]\\ |$\\ )" )
1221+ (cond ((looking-at " \\ (if\\ |then\\ |else\\ |let\\ |in\\ |mdo\\ |rec\\ |do\\ |proc\\ |case\\ |of\\ |where\\ |module\\ |signature \\ | deriving\\ |import\\ |data\\ |type\\ |newtype\\ |class\\ |instance\\ )\\ ([^[:alnum:]'_]\\ |$\\ )" )
12211222 (match-string-no-properties 1 ))
12221223 ((looking-at " [][(){}[,;]" )
12231224 (match-string-no-properties 0 ))
0 commit comments