Skip to content

Keyword do is not open expression for indentation #873

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
Sep 14, 2015
Merged

Keyword do is not open expression for indentation #873

merged 1 commit into from
Sep 14, 2015

Conversation

gracjan
Copy link
Contributor

@gracjan gracjan commented Sep 13, 2015

This is not syntactically legal Haskell:

main =
   do putStrLn "X"
   do putStrLn "X"

where this is:

main =
   (do putStrLn "X")
   (do putStrLn "X")

It parses but does not type check. Indentation should not propose the first case.

This is not syntactically legal Haskell:

main =
   do putStrLn "X"
   do putStrLn "X"

where this is:

main =
   (do putStrLn "X")
   (do putStrLn "X")

It parses but does not type check.
gracjan added a commit that referenced this pull request Sep 14, 2015
…sion

Keyword do is not open expression for indentation
@gracjan gracjan merged commit 4a604ac into haskell:master Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant