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

Properly handle single-line records #32

Closed
Janiczek opened this issue Oct 21, 2015 · 2 comments
Closed

Properly handle single-line records #32

Janiczek opened this issue Oct 21, 2015 · 2 comments
Assignees
Milestone

Comments

@Janiczek
Copy link
Contributor

x address = button [ onClick address (AddStatus {id=50}) ] [ text "add status" ]

becomes

x address =
    button [ onClick address (AddStatus { id = 50) ] [ text "add status" ]
                                        }
@avh4 avh4 self-assigned this Oct 21, 2015
@avh4 avh4 added this to the 0.1.0 alpha milestone Oct 21, 2015
@avh4
Copy link
Owner

avh4 commented Oct 21, 2015

Minimal case is

x address =
    (f {id=50})

This is because records that are single-line in the input are being formatted as multiline.

This problem will also apply to if statements, and maybe other things. The multiline logic should be redone to depend on the multiline-ness of the subexpression output instead of the input.

@avh4 avh4 changed the title Curly bracket relocated in parenthesized type constructor Properly handle single-line records Oct 21, 2015
@avh4
Copy link
Owner

avh4 commented Oct 22, 2015

Fixed in 143238e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants