tests/DListProperties.hs:70:31: warning: [GHC-63394] [-Wx-partial]
In the use of ‘head’
(imported from Data.List, but defined in GHC.List):
"This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty."
|
70 | prop_head = eqOn (not . null) List.head (head . fromList)
| ^^^^^^^^^
tests/DListProperties.hs:73:31: warning: [GHC-63394] [-Wx-partial]
In the use of ‘tail’
(imported from Data.List, but defined in GHC.List):
"This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty."
|
73 | prop_tail = eqOn (not . null) List.tail (tail . fromList)
| ^^^^^^^^^
It seems that the use of
headandtailhere is intended, so maybe just switch off the warning.