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

feat(compiler): Improve exhaustive warning for lists #2220

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

spotandjake
Copy link
Member

@spotandjake spotandjake commented Dec 23, 2024

This pr improves the way we print exhaustiveness warnings for list constructors an example can be seen below:
Screenshot 2024-12-22 at 8 22 40 PM

As a side note, and without looking into this I wonder if it would make sense or if we should at least open an issue to move from a custom printer here to somehow using the formatter, we do have a function to convert from the typedtree nodes back into the parsetree nodes which we should be able to pipe into the formatter this would maintain a consistent

Closes: #2217

@ospencer
Copy link
Member

I wonder if it would make sense or if we should at least open an issue to move from a custom printer here to somehow using the formatter

Maybe? I really hate the untypeast stuff, but it would be nice to use the formatter.

@ospencer ospencer added this pull request to the merge queue Dec 28, 2024
Merged via the queue into grain-lang:main with commit f54dbdf Dec 29, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve pattern matching errors for lists
2 participants