You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incomplete pattern warning when matching both Nil and Cons #107
I would ideally like a test that demonstrates no incomplete pattern warning (-Wincomplete-patterns) when COMPLETE is used. Perhaps the warning can be turned into an error that would cause compiling to fail. Also, the test should ideally pass for all versions of GHC that support COMPLETE.
Activity
spl commentedon Nov 10, 2022
Certainly! Thanks for offering!
I just checked briefly to see when it was added to GHC. It seems to appear in the documentation of 8.2.1. It's absent from the 8.2.1 release notes but appears in the 8.2.2 release notes.
I would ideally like a test that demonstrates no incomplete pattern warning (
-Wincomplete-patterns) whenCOMPLETEis used. Perhaps the warning can be turned into an error that would cause compiling to fail. Also, the test should ideally pass for all versions of GHC that supportCOMPLETE.