Skip to content

pretty-print symboly binders with surrounding parens#6030

Merged
aryairani merged 3 commits intotrunkfrom
2025-12-03-pretty-printer-fix
Dec 4, 2025
Merged

pretty-print symboly binders with surrounding parens#6030
aryairani merged 3 commits intotrunkfrom
2025-12-03-pretty-printer-fix

Conversation

@mitchellwrosen
Copy link
Member

Overview

Fixes #5317

Test coverage

I've added a transcript that demonstrates the fix

Loose ends

In investigating this issue, I discovered that we are also willing to generate symboly type variables (when a user doesn't supply a type sig) that we can't then parse back.

Example type signature:

foo : forall +. + -> +

That seems related to this issue, though probably not as likely to actually happen.

FWIW, I'm not sure we should have ever even allowed symboly binders, but that ship has probably sailed

@mitchellwrosen mitchellwrosen marked this pull request as ready for review December 4, 2025 01:16
@aryairani
Copy link
Contributor

What does the fix for the type vars version look like? Would you open a ticket

@aryairani aryairani merged commit ff09dad into trunk Dec 4, 2025
31 checks passed
@aryairani aryairani deleted the 2025-12-03-pretty-printer-fix branch December 4, 2025 02:26
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.

symboly argument names in lambdas lacking parens

2 participants