Skip to content
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 differs for multi line HsCmdApp #730

Closed
amesgen opened this issue Jul 28, 2021 · 0 comments · Fixed by #1011
Closed

AST differs for multi line HsCmdApp #730

amesgen opened this issue Jul 28, 2021 · 0 comments · Fixed by #1011
Labels
bug Something isn't working

Comments

@amesgen
Copy link
Member

amesgen commented Jul 28, 2021

Describe the bug
The snippet

{-# LANGUAGE Arrows #-}

foo =
  proc x -> do
    returnA -< x
   1123

is formatted (with --unsafe) into

{-# LANGUAGE Arrows #-}

foo =
  proc x ->
    do
      returnA -< x 1123

with different AST.

This is basically an example for what @mrkkrp suspected in #719.

I found this while testing #707; I have no idea if anyone would ever write code like that.

Environment
current master

@amesgen amesgen added the bug Something isn't working label Jul 28, 2021
@mrkkrp mrkkrp added this to Icebox in Internship 2021 Aug 7, 2021
@mrkkrp mrkkrp removed this from Icebox in Internship 2021 Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant