fix runtime crash on incomplete pattern match in lambda

This was very susprising to me that it was not caught by -Wall, so I
enabled -Wincomplete-uni-patterns to catch such things. It found a
second one just lines above, but no others anywhere.
This commit is contained in:
Joey Hess 2020-04-13 15:56:10 -04:00
parent c22c07bbed
commit bcc0ec5b99
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 11 additions and 6 deletions

View file

@ -371,7 +371,7 @@ Executable git-annex
tasty-quickcheck,
tasty-rerun
CC-Options: -Wall
GHC-Options: -Wall -fno-warn-tabs
GHC-Options: -Wall -fno-warn-tabs -Wincomplete-uni-patterns
Extensions: PackageImports, LambdaCase
-- Some things don't work with the non-threaded RTS.
GHC-Options: -threaded