Skip to content

Commit d36e3e8

Browse files
author
Karl Smeltzer
committed
add indentation tests for constructor and deriving
1 parent 11b255b commit d36e3e8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/haskell-indentation-tests.el

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,19 @@ foo x
896896
(2 2)
897897
(3 2))
898898

899+
(hindent-test "55 data constructor on separate line" "
900+
data Foo = Bar
901+
| Baz"
902+
(1 0)
903+
(2 9))
904+
905+
(hindent-test "55a deriving below aligned data constructors" "
906+
data Foo = Bar
907+
| Baz
908+
deriving (Show)"
909+
(1 0)
910+
(2 9)
911+
(3 9))
899912

900913
(ert-deftest haskell-indentation-ret-indents ()
901914
(with-temp-switch-to-buffer

0 commit comments

Comments
 (0)