-
Notifications
You must be signed in to change notification settings - Fork 83
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
"AST of input and AST of formatted code differ" for block expressions applied to other expressions #444
Labels
bug
Something isn't working
Comments
do
corner case
Same story: main =
case foo of
x -> a
foo a b main =
case foo of
x -> a
foo
a
b
|
And: main = do
if x then y else z
foo a b main =
do
if x then y else z
foo
a
b
|
Do you have an opinion regarding the fix? Should the arguments be aligned like this: main =
do
x
y
z
main =
case foo of
x -> a
foo a b
main =
do
if x then y else z
foo a b ? |
Removing indentation bump in this particular case seems to solve the problem. I do not understand why |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: