Skip to content

Commit c7f28ef

Browse files
committed
Add tests for implicit layout rule and parentheses interaction
1 parent 9a6fa50 commit c7f28ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/haskell-indentation-tests.el

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,4 +506,16 @@ let foo = Foo {
506506
((5 0) 12)
507507
((6 0) 12))
508508

509+
(hindent-test "22 should obey layout only outside parentheses" "
510+
func = 1234
511+
where
512+
foo :: Ivory eff ()
513+
foo = do
514+
return ()"
515+
((1 0) 0)
516+
((2 0) 2)
517+
((3 0) 4)
518+
((4 0) 0 4 11)
519+
((5 0) 6))
520+
509521
;;; haskell-indentation-tests.el ends here

0 commit comments

Comments
 (0)