Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasteful formatting of type family with injectivity constraint #482

Closed
blackgnezdo opened this issue Dec 16, 2019 · 0 comments · Fixed by #506
Closed

Wasteful formatting of type family with injectivity constraint #482

blackgnezdo opened this issue Dec 16, 2019 · 0 comments · Fixed by #506
Labels
style Nitpicking and things related to purely visual aspect for formatting.

Comments

@blackgnezdo
Copy link

blackgnezdo commented Dec 16, 2019

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

@mrkkrp mrkkrp added the style Nitpicking and things related to purely visual aspect for formatting. label Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Nitpicking and things related to purely visual aspect for formatting.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants