Skip to content

newtypes are formatted on two lines with break_single_constructors: false #342

Open
@imuli

Description

@imuli

As newtypes always have a single constructor, you would think that they
would obey break_single_constructors. However, with that set to false,

newtype Foo = Foo Int

becomes

newtype Foo
   = Foo Int

while data with a single constructor stay on one line.

data Foo = Foo Int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions