Skip to content

Indent continuation lines inside parenthesized arrow types#6218

Open
tfausak wants to merge 3 commits intounisonweb:trunkfrom
tfausak:gh-626-indent-hof
Open

Indent continuation lines inside parenthesized arrow types#6218
tfausak wants to merge 3 commits intounisonweb:trunkfrom
tfausak:gh-626-indent-hof

Conversation

@tfausak
Copy link
Copy Markdown
Contributor

@tfausak tfausak commented Apr 3, 2026

When a function type has parenthesized arrow-type arguments like (a -> b -> c) -> d, and the type breaks across multiple lines, continuation lines inside the parentheses are now indented by 1 extra space relative to the opening paren, making it easier to visually parse where the parenthesized group ends.

Fixes #626.

When a function type has parenthesized arrow-type arguments like
`(a -> b -> c) -> d`, and the type breaks across multiple lines,
continuation lines inside the parentheses are now indented by 1 extra
space relative to the opening paren, making it easier to visually
parse where the parenthesized group ends.

Fixes unisonweb#626

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@tfausak tfausak marked this pull request as ready for review April 3, 2026 18:29
Copy link
Copy Markdown
Contributor

@aryairani aryairani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it

@aryairani aryairani enabled auto-merge April 4, 2026 00:34
@aryairani aryairani disabled auto-merge April 4, 2026 00:35
@aryairani aryairani enabled auto-merge April 4, 2026 00:35
auto-merge was automatically disabled April 4, 2026 01:11

Head branch was pushed to by a user without write access

@tfausak
Copy link
Copy Markdown
Contributor Author

tfausak commented Apr 6, 2026

Just FYI: auto-merge was disabled because I made a change to update the test proofs.

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 this pull request may close these issues.

Pretty-printer should indent arguments of higher order functions

2 participants