Non-exhaustive pattern matching of repeated arguments is considered exhaustive #20
Labels
code quality
Concerns the standard of code rather than functionality
core
Describes core required functionality
severe
Has a significant impact on many users
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.The text was updated successfully, but these errors were encountered: