PTup_
should take a NonEmpty
list of patterns
#387
Labels
C-Low Hanging Fruit
Shouldn't take too much time; ideal issues for new contributors.
S-Nice to have
Minor importance
Z-Refactoring
Z-Student
Good project for a student.
Disco does not support empty tuples (in fact, neither does it support 1-tuples), so to help get rid of warnings, avoid potential crashes, etc. the type we use to record tuple patterns should reflect this, using
Data.List.NonEmpty
.For manipulating
NonEmpty
lists there are a bunch of functions (mostly paralleling functions on lists) here: https://hackage.haskell.org/package/base-4.21.0.0/docs/Data-List-NonEmpty.htmlThe text was updated successfully, but these errors were encountered: