Skip to content

Conversation

endgame
Copy link
Contributor

@endgame endgame commented Jan 20, 2025

The absence of Overloaded Labels can cause confusing parse errors because # is lexed as an operator, which then confuses the parser. Try to help the situation by adding an example.

Note: I had to bypass pre-commit hooks when committing the example, because ormolu wanted to format the "before" example and failed because it is designed not to parse. Is there a way to exclude message-index/messages/GHC-58481/example5/before/Label.hs from autoformatting?

@endgame endgame changed the title 58481 overloaded labels GHC-58481 overloaded labels example Jan 20, 2025
@Bodigrim Bodigrim merged commit ab7213f into haskellfoundation:main Feb 2, 2025
2 checks passed
@Bodigrim
Copy link
Collaborator

Bodigrim commented Feb 2, 2025

Thanks!

@endgame endgame deleted the 58481-overloaded-labels branch February 3, 2025 01:06
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.

2 participants