Skip to content

AST differs for multi line HsCmdApp #730

@amesgen

Description

@amesgen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions