Fix #16411 by making dataConCannotMatch aware of (~~)
The dataConCannotMatch
function (which powers the
-Wpartial-fields
warning, among other things) had special reasoning
for explicit equality constraints of the form a ~ b
, but it did
not extend that reasoning to a ~~ b
constraints, leading to #16411 (closed).
Easily fixed.
Edited by Ben Gamari