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

Non-exhaustive pattern matching of repeated arguments is considered exhaustive #20

Open
propensive opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
code quality Concerns the standard of code rather than functionality core Describes core required functionality severe Has a significant impact on many users

Comments

@propensive
Copy link
Owner

It's currently a bit too easy to try to pattern match against repeated arguments but fail to match all cases (i.e. by omitting a * on the parameter). Unfortunately this is interpreted as an exhaustive match, which leads to a match error when the partial function ultimately fails to match.

@propensive propensive added severe Has a significant impact on many users code quality Concerns the standard of code rather than functionality core Describes core required functionality labels Dec 18, 2024
@propensive propensive self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Concerns the standard of code rather than functionality core Describes core required functionality severe Has a significant impact on many users
Projects
Status: Todo
Development

No branches or pull requests

1 participant