Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions tests/haskell-indentation-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -502,40 +502,36 @@ instance (Monad m) ⇒ C m a where
(2 2)
(3 0 2))

(hindent-test "21a* fix \"let\" statement in \"do\" block""
(hindent-test "21a fix \"let\" statement in \"do\" block""
main :: IO ()
main = do
let foo = Foo {
bar = 0
, baz = 0"
, baz = 0"
(1 0)
(2 0)
(2 0 8)
(3 2)
(4 6)
(5 4)
(6 4))
(5 6)
(6 8))

(hindent-test "21b* fix named fields in \"data\" declaration""
(hindent-test "21b fix named fields in \"data\" declaration""
data Foo = Foo {
bar :: Int
, baz :: Int"
, baz :: Int"
(1 0)
(2 4)
(2 2)
(3 2)
(4 2))
(4 4 11))

(hindent-test "21c* fix \"let\" statement and record in \"do\" block""
main :: IO ()
main = do
let foo = Foo {
bar = 0
, baz = 0"
(hindent-test "21c* \"data\" declaration open on next line" "
data Foo = Foo
{ bar :: Int
, baz :: Int"
(1 0)
(2 0)
(2 2)
(3 2)
(4 14)
(5 12)
(6 12))
(4 4 11))

(hindent-test "22 should obey layout only outside parentheses" "
func = 1234
Expand Down