Skip to content

Indentation of guards with commas is working properly #948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2015
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
12 changes: 6 additions & 6 deletions tests/haskell-indentation-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -234,23 +234,23 @@ fun = x
((1 0) 0)
((2 0) 0 6))

(hindent-test "11* Guards with commas""
(hindent-test "11 Guards with commas""
clunky env var1 var2
| Just val1 <- lookup env var1
, Just val2 <- lookup env var2"
((1 0) 0)
((2 0) 2)
((3 0) 0 2)
((4 0) 0 2))
((3 0) 2)
((4 0) 0 17))

(hindent-test "11u* Guards with commas""
(hindent-test "11u Guards with commas""
clunky env var1 var2
| Just val1 ← lookup env var1
, Just val2 ← lookup env var2"
((1 0) 0)
((2 0) 2)
((3 0) 0 2)
((4 0) 0 2))
((3 0) 2)
((4 0) 0 16))

(hindent-test "12 \"do\" as expression""
fun = do { putStrLn \"X\";
Expand Down