stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Some `records` configs cause variant types to not line up

Open tysonzero opened this issue 2 years ago • 0 comments

With the following config:

  - records:
      equals: "same_line"
      first_field: "indent 4"
      field_comment: 2
      deriving: 4
      via: "same_line"
      break_enums: true
      break_single_constructors: false
      curried_context: false

This code:

data Foo
    = Bar Bar
    | Baz
    | Qux Qux

Becomes:

data Foo = Bar Bar
           | Baz
           | Qux Qux

This is on stylish-haskell 0.12.1.0, so I apologize if this has already been fixed.

tysonzero avatar Apr 14 '22 22:04 tysonzero