Skip to content

Commit b562d05

Browse files
committed
Merge pull request #1129 from karljs/master
Add indentation tests for constructor and deriving
2 parents 11b255b + 259f38d commit b562d05

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/haskell-indentation-tests.el

+13
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)