Skip to content

Inconsistency in the number of operators per line #690

@zliu41

Description

@zliu41

Describe the bug

Input:

foo gen =
  Foo <$> gen <*> gen <*> gen <*> gen <*> gen <*> gen
      <*> gen <*> gen <*> gen <*> gen <*> gen<*> gen <*> gen

Output:

foo gen =
  Foo <$> gen <*> gen <*> gen <*> gen <*> gen <*> gen
    <*> gen
    <*> gen
    <*> gen
    <*> gen
    <*> gen
    <*> gen
    <*> gen

Expected behavior
I would have expected that Ormolu treated the first line and the second line of the input the same way.

Environment
34bdf62

Metadata

Metadata

Assignees

No one assigned

    Labels

    styleNitpicking and things related to purely visual aspect for formatting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions