Skip to content

No indentation for square brackets on new line #69

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

Closed
Keyamoon opened this issue Jun 4, 2016 · 1 comment
Closed

No indentation for square brackets on new line #69

Keyamoon opened this issue Jun 4, 2016 · 1 comment

Comments

@Keyamoon
Copy link

Keyamoon commented Jun 4, 2016

Shouldn't square brackets be auto indented when started on a new line?

Bad indentation example:

a = map (+1)
[ 1
, 2
, 3
]
@raichoo
Copy link
Member

raichoo commented Jun 6, 2016

No, because it would break code like this:

foo = do
  x   <- bar
  [y] <- quux -- this would break

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

No branches or pull requests

2 participants