Skip to content

Idempotence bug with comments in data declaration #449

@judah

Description

@judah

Input:

data A =
     B  -- C

   -- D
   | E

Output:

Formatting is not idempotent:
  before: " B -- C\n  | -- D\n   "
  after:  " B -- C\n    -- D\n  |"
Please, consider reporting the bug.

Investigating further, it formats it as:

data A
  = B -- C
  | -- D
    E

which then gets reformatted as:

data A
  = B -- C
    -- D
  | E

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcommentsIssues related to comment placementidempotenceIdempotence issues and solutions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions