@@ -603,7 +603,7 @@ the current buffer."
603
603
; ; tokens in type declarations
604
604
(defconst haskell-indentation-type-list
605
605
'((" ::" . (lambda () (haskell-indentation-with-starter
606
- (lambda () (haskell-indentation-separated #'haskell-indentation-type " ->" )))))
606
+ (lambda () (haskell-indentation-separated #'haskell-indentation-type '( " ->" " => " ) )))))
607
607
(" (" . (lambda () (haskell-indentation-list #'haskell-indentation-type " )" " ," )))
608
608
(" [" . (lambda () (haskell-indentation-list #'haskell-indentation-type " ]" " ," )))
609
609
(" {" . (lambda () (haskell-indentation-list #'haskell-indentation-type " }" " ," )))))
@@ -634,7 +634,7 @@ the current buffer."
634
634
(" where" . (lambda () (haskell-indentation-with-starter
635
635
#'haskell-indentation-declaration-layout nil t )))
636
636
(" ::" . (lambda () (haskell-indentation-with-starter
637
- (lambda () (haskell-indentation-separated #'haskell-indentation-type " ->" )))))
637
+ (lambda () (haskell-indentation-separated #'haskell-indentation-type '( " ->" " => " ) )))))
638
638
(" =" . (lambda () (haskell-indentation-statement-right #'haskell-indentation-expression )))
639
639
(" <-" . (lambda () (haskell-indentation-statement-right #'haskell-indentation-expression )))
640
640
(" (" . (lambda () (haskell-indentation-list #'haskell-indentation-expression " )" '(list " ," " ->" ))))
@@ -699,7 +699,7 @@ the current buffer."
699
699
((eq current-token 'end-tokens )
700
700
(when (member following-token
701
701
'(value operator no-following-token
702
- " -> " " (" " [" " {" " ::" ))
702
+ " (" " [" " {" " ::" ))
703
703
(haskell-indentation-add-indentation current-indent))
704
704
(throw 'return nil ))
705
705
(t (let ((parser (assoc current-token haskell-indentation-type-list)))
@@ -1164,7 +1164,7 @@ the current buffer."
1164
1164
(match-string-no-properties 1 ))
1165
1165
((looking-at " [][(){}[,;]" )
1166
1166
(match-string-no-properties 0 ))
1167
- ((looking-at " \\ (\\\\\\ |->\\ |→\\ |<-\\ |←\\ |::\\ |∷\\ |=\\ ||\\ )\\ ([^-:!#$%&*+./<=>?@\\\\ ^|~]\\ |$\\ )" )
1167
+ ((looking-at " \\ (\\\\\\ |->\\ |=> \\ | →\\ |<-\\ |←\\ |::\\ |∷\\ |=\\ ||\\ )\\ ([^-:!#$%&*+./<=>?@\\\\ ^|~]\\ |$\\ )" )
1168
1168
(match-string-no-properties 1 ))
1169
1169
((looking-at " \\ (→\\ |←\\ |∷\\ )\\ ([^-:!#$%&*+./<=>?@\\\\ ^|~]\\ |$\\ )" )
1170
1170
(let ((tok (match-string-no-properties 1 )))
0 commit comments