gelisam / surjective

An output coverage checker
https://hackage.haskell.org/package/surjective
11 stars 2 forks source link

support product types #7

Open gelisam opened 6 years ago

gelisam commented 6 years ago

surjective is useful when adding a new constructor to a sum type, but what about adding a new field to a product type? We can't use a separate covers call for each field, because the pattern MyConstructor { myField = _ } covers the entirety of MyConstructor {..}, not just the explicitly-named fields.