Formatting fails to be idempotent with fixity declarations #212

Open
opened 2019-01-11 23:39:34 +01:00 by cronokirby · 0 comments
cronokirby commented 2019-01-11 23:39:34 +01:00 (Migrated from github.com)

Given the following code snippet:

foo = 3
  where
    a = 2
    infixr 7 `bar`
    bar = (+)

on every formatting run, a new line is inserted between a and the fixity declaration, e.g. formatting twice results in 2 new lines, 3 times in 3 etc.

This seems to me to be a bug, rather than intentional formatting behavior 8^)

Given the following code snippet: ```haskell foo = 3 where a = 2 infixr 7 `bar` bar = (+) ``` on every formatting run, a new line is inserted between a and the fixity declaration, e.g. formatting twice results in 2 new lines, 3 times in 3 etc. This seems to me to be a bug, rather than intentional formatting behavior 8^)
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#212
There is no content yet.