Skip to content

Unindent list comprehension #966

@brandonchinn178

Description

@brandonchinn178

Describe the bug

Personally, I find that reformatting this:

x =
  [ i + 1
  | i <- [0 .. 5]
  ]

to:

x =
  [ i + 1
    | i <- [0 .. 5]
  ]

to be very surprising. I understand this for things like parallel list comprehension or in a do-block, but IMO a simple list comprehension should not indent like this

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