ormolu icon indicating copy to clipboard operation
ormolu copied to clipboard

AST differs for multi line `HsCmdApp`

Open amesgen opened this issue 3 years ago • 0 comments

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 avatar Jul 28 '21 21:07 amesgen