-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
bugSomething isn't workingSomething isn't workingcommentsIssues related to comment placementIssues related to comment placement
Milestone
Description
Describe the bug
Formatting this code with --unsafe
foo = do
bar
-- txt
$ bazyields
foo = do
bar
-- txt
$
bazwhich has differing AST: The LHS of $ is now the entire do block.
Expected behavior
It should be formatted correctly, e.g. with output
foo = do
bar $
-- txt
bazThe same thing happens for all infixr 0 (isHardSplitterOp) operators.
Environment
- Version of the code: Ormolu 0.7.0.0 or 49eb083 (current
master)
Additional context
This is not reproducible on the current Ormolu Live; but this is completely unrelated, will open a PR (EDIT: #1029) for that soon. Now fixed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcommentsIssues related to comment placementIssues related to comment placement