Open LiamGoodacre opened 8 months ago
It looks like ormolu interprets the comment as relating to the import Example3
line.
import Example1
import Example2 ({- comment -})
import Example3
import Example1
import Example2 ()
{- comment -}
import Example3
Describe the bug
Here are a bunch of strange comment placements that I've noticed.
To Reproduce
Positive example
This one looks good
Input, & Output
Using QQ in the previous example
Input (& expected output)
Output
Record with comment on each line
Input (& expected output)
Output
Records with fewer comments
Notice how
-- E
here is also moved, which differs from the previous example.Input (& expected output)
Output
Environment