Closed asr closed 1 year ago
Natural
is not in base
for all versions of base
QuickCheck
compiles with.
Current solution avoids code duplication (first in QuickCheck
and then in quickcheck-instances
for the rest of supported base
versions).
If QuickCheck
's base
lower bound is bumped to a version with Natural
, then the instance can be moved.
You are right. QuickCheck
shouldn't remove the support for GHC < 7.10 (i.e. base 4.8.0.0
) only because the missing instances for Natural
were added. Thanks.
Since
Natural
data type is defined in thebase
library, I suggest to move the instances ofArbitrary
,CoArbitrary
andFunction
forNatural
from the quickcheck-instances library to QuickCheck. In this way, we shall avoid to install the additional dependencies ofquickcheck-instances
when using QuickCheck with this data type. The instances are defined here.@nick8325 and @phadej, any opinion?