Skip to content

Unexpected newline and indents in multiline record value's type signature #79

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

Closed
thomashoneyman opened this issue Nov 28, 2021 · 0 comments · Fixed by #87
Closed

Unexpected newline and indents in multiline record value's type signature #79

thomashoneyman opened this issue Nov 28, 2021 · 0 comments · Fixed by #87

Comments

@thomashoneyman
Copy link
Collaborator

The following input:

myRecord
  :: { a :: String
     , b :: String
     } 
myRecord = mempty

will format with an unexpected newline and several indents:

myRecord
  ::
       { a :: String
       , b :: String
       }
myRecord = mempty

I would expect this to instead format the same way it would if this code were followed by a function arrow, namely:

myRecord
  :: { a :: String
     , b :: String
     }
  -> String
myRecord _ = mempty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant