-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
styleNitpicking and things related to purely visual aspect for formatting.Nitpicking and things related to purely visual aspect for formatting.
Description
When using a long operator (infix application), the "head" becames "detached" from a body for a very long distance.
Examples:
examples =
x
`veryLongFunctionNameUsedAsOperator` head
body
tail
<----------------------------------> head
{ body,
tail
}Expected
examples =
x
`veryLongFunctionNameUsedAsOperator`
head
body
tail
<---------------------------------->
head
{ body,
tail
}For me personally, any operator of width >1 is long, but Ormolu maintainers may have another taste.
Better solution: just preserve the line break after the operator.
Metadata
Metadata
Assignees
Labels
styleNitpicking and things related to purely visual aspect for formatting.Nitpicking and things related to purely visual aspect for formatting.