File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,11 @@ For example
643
643
(when (string= current-token " instance" )
644
644
(haskell-indentation-read-next-token))
645
645
(haskell-indentation-type)
646
- (cond ((string= current-token " =" )
646
+ (cond ((eq current-token 'end-tokens )
647
+ (when (member following-token '(" =" " where" ))
648
+ (haskell-indentation-add-indentation current-indent)
649
+ (throw 'parse-end nil )))
650
+ ((string= current-token " =" )
647
651
(haskell-indentation-separated
648
652
#'haskell-indentation-expression " |" " deriving" ))
649
653
((string= current-token " where" )
Original file line number Diff line number Diff line change @@ -308,6 +308,12 @@ data X = X
308
308
(2 0 2 )
309
309
(3 0 ))
310
310
311
+ (hindent-test " 13b honour = on a separate line in data declaration" "
312
+ data X a b
313
+ = X"
314
+ (1 0 )
315
+ (2 2 ))
316
+
311
317
(hindent-test " 14* Line starting with operator inside \" do\" needs to be indented" "
312
318
fun = do
313
319
pure X
You can’t perform that action at this time.
0 commit comments