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

GHC-58481 overloaded labels example #552

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

endgame
Copy link

@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
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.

1 participant