on master help sign in
Fix test suite build with GHC 7.0.x
commitd31b70e3752f743bb6e13ac56aed25082cc7ba17 authorBryan O'Sullivan <bos@serpentine.com> dateMon 30 Dec 2013, 15:54 (13 years ago) parent200a2cb
1 file changed+6
tests/Tests/QuickCheckUtils.hs+6
tests/Tests/QuickCheckUtils.hs+6
@@ -63,6 +63,12 @@ instance Arbitrary I16 where
6363instance Arbitrary B.ByteString where
6464 arbitrary = B.pack `fmap` arbitrary
6565
66+#if !MIN_VERSION_base(4,4,0)
67+instance Random Word8 where
68+ randomR = integralRandomR
69+ random = randomR (minBound,maxBound)
70+#endif
71+
6672genUnicode :: IsString a => Gen a
6773genUnicode = fmap fromString string where
6874 string = sized $ \n ->