We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0178d46 commit 72b1552Copy full SHA for 72b1552
tests/Properties/ByteString.hs
@@ -108,11 +108,13 @@ instance RdInt Word64 where { bread = B.readWord64; sread = readWord64 }
108
instance RdInt Integer where { bread = B.readInteger; sread = readInteger }
109
instance RdInt Natural where { bread = B.readNatural; sread = readNatural }
110
111
+#if !MIN_VERSION_QuickCheck(2,17,0)
112
instance Arbitrary Natural where
113
arbitrary = i2n <$> arbitrary
114
where i2n :: Integer -> Natural
115
i2n i | i >= 0 = fromIntegral i
116
| otherwise = fromIntegral $ negate i
117
+#endif
118
119
testRdInt :: forall a. (Arbitrary a, RdInt a) => String -> TestTree
120
testRdInt s = testGroup s $
0 commit comments