Closed amigalemming closed 5 years ago
How about that instance:
instance (Testable prop) => Testable (Maybe prop) where property Nothing = property rejected property (Just prop) = property prop
?
Reason: I have a Gen that cannot always produce something, thus it has type Gen (Maybe a). I want to turn Nothing into Discard when it is finally converted to Property. I find discard too much of a hack.
Gen
Gen (Maybe a)
Nothing
Discard
Property
discard
Related: #124
I think this is a sensible idea.
How about that instance:
?
Reason: I have a
Gen
that cannot always produce something, thus it has typeGen (Maybe a)
. I want to turnNothing
intoDiscard
when it is finally converted toProperty
. I finddiscard
too much of a hack.Related: #124