Skip to content

Wasteful formatting of type family with injectivity constraint #482

@blackgnezdo

Description

@blackgnezdo

Given this input:

type family Foo (cv :: Bar)
    = result | result -> cv where
  Foo '[] = Baz

ormolu (built at 9dbba53) produces this output:

type family
  Foo (cv :: Bar) =
    result
    | result -> cv where
  Foo '[] = Baz

4 lines seems excessive for this.

FYI, @judah

Metadata

Metadata

Assignees

No one assigned

    Labels

    styleNitpicking and things related to purely visual aspect for formatting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions