File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -648,8 +648,10 @@ For example
648
648
(haskell-indentation-add-indentation current-indent)
649
649
(throw 'parse-end nil )))
650
650
((string= current-token " =" )
651
- (haskell-indentation-separated
652
- #'haskell-indentation-expression " |" " deriving" ))
651
+ (haskell-indentation-with-starter
652
+ (lambda ()
653
+ (haskell-indentation-separated
654
+ #'haskell-indentation-expression " |" " deriving" ))))
653
655
((string= current-token " where" )
654
656
(haskell-indentation-with-starter
655
657
#'haskell-indentation-expression-layout nil ))))
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ instance Bar Int
664
664
(hindent-test " 32 allow type operators" "
665
665
data (:.) a b = a :. b
666
666
"
667
- (2 0 2 ))
667
+ (2 0 16 ))
668
668
669
669
(hindent-test " 33* parse #else in CPP" "
670
670
#ifdef FLAG
@@ -681,7 +681,7 @@ data T = T {
681
681
}
682
682
683
683
"
684
- (5 0 2 ))
684
+ (5 0 9 ))
685
685
686
686
(hindent-test " 35 baroque construct which causes parse error" "
687
687
az = Projection
@@ -854,7 +854,7 @@ newtype instance T Char = TC Bool"
854
854
(1 0 )
855
855
(2 0 )
856
856
(3 0 )
857
- (4 0 2 ))
857
+ (4 0 26 ))
858
858
859
859
(hindent-test " 52a* module simplest case two lines" "
860
860
module A.B
@@ -896,13 +896,13 @@ foo x
896
896
(2 2 )
897
897
(3 2 ))
898
898
899
- (hindent-test " 55* data constructor on separate line" "
899
+ (hindent-test " 55 data constructor on separate line" "
900
900
data Foo = Bar
901
901
| Baz"
902
902
(1 0 )
903
903
(2 9 ))
904
904
905
- (hindent-test " 55a* deriving below aligned data constructors" "
905
+ (hindent-test " 55a deriving below aligned data constructors" "
906
906
data Foo = Bar
907
907
| Baz
908
908
deriving (Show)"
You can’t perform that action at this time.
0 commit comments