Skip to content

Inline comment to a record constructor leads to non idempotent behavior #426

@Lev135

Description

@Lev135

Initial formatting

data Foo
  = Foo { foo :: Int } -- ^ foo
  | Bar

after the first run

data Foo
  = Foo
  { foo :: Int
  } -- ^ foo
  | Bar

after the second run

data Foo
  = Foo
  { foo :: Int
  }
  -- ^ foo
  | Bar

It was discovered by me at the same time as #425, but I think that this is another issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions