Skip to content

Commit f0a0c87

Browse files
committed
Record declarations should follow tibell style (test)
1 parent 4552947 commit f0a0c87

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/haskell-indentation-tests.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ macro quotes them for you."
135135
function = Record
136136
{ field = 123 }"
137137
(1 0)
138-
(2 0 2))
138+
(2 2))
139139

140140
(hindent-test "2 Handle underscore in identifiers""
141141
function = do
@@ -522,7 +522,7 @@ data Foo = Foo {
522522
(1 0)
523523
(2 2)
524524
(3 2)
525-
(4 4 11))
525+
(4 11))
526526

527527
(hindent-test "21c* \"data\" declaration open on next line" "
528528
data Foo = Foo
@@ -644,7 +644,7 @@ instance Bar Int
644644
(hindent-test "32 allow type operators" "
645645
data (:.) a b = a :. b
646646
"
647-
(2 0 16))
647+
(2 0 2))
648648

649649
(hindent-test "33* parse #else in CPP" "
650650
#ifdef FLAG
@@ -661,9 +661,7 @@ data T = T {
661661
}
662662
663663
"
664-
;; set of answers isn't best but it is not a bug
665-
;; should be just 0
666-
(5 0 9))
664+
(5 0 2))
667665

668666
(hindent-test "35 baroque construct which causes parse error" "
669667
az = Projection

0 commit comments

Comments
 (0)