File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -679,16 +679,15 @@ For example
679679 (haskell-indentation-with-starter
680680 #'haskell-indentation-type-1 )))))
681681 ((string= current-token " where" )
682- (let ((starter-indent-inside (current-column )))
682+ (haskell-indentation-with-starter
683+ #'haskell-indentation-expression-layout nil )
684+ (cond
685+ ((equal current-token 'end-tokens )
686+ (when (string= following-token " deriving" )
687+ (haskell-indentation-add-left-indent)))
688+ ((equal current-token " deriving" )
683689 (haskell-indentation-with-starter
684- #'haskell-indentation-expression-layout nil )
685- (cond
686- ((equal current-token 'end-tokens )
687- (when (string= following-token " deriving" )
688- (haskell-indentation-add-left-indent)))
689- ((equal current-token " deriving" )
690- (haskell-indentation-with-starter
691- #'haskell-indentation-type-1 )))))))
690+ #'haskell-indentation-type-1 ))))))
692691
693692(defun haskell-indentation-import ()
694693 " Parse import declaration."
You can’t perform that action at this time.
0 commit comments