on master help sign in
Fix tests under GHC 7.0
commita593eaa6858448fd7c3342921d93bccea2ec8d49 authorBryan O'Sullivan <bos@serpentine.com> dateTue 11 Nov 2014, 20:45 (12 years ago) parent630e169
1 file changed+9−1
tests/Tests/QuickCheckUtils.hs+9−1
tests/Tests/QuickCheckUtils.hs+9−1
@@ -76,7 +76,15 @@ instance Arbitrary B.ByteString where
7676 shrink = map B.pack . shrink . B.unpack
7777
7878#if !MIN_VERSION_base(4,4,0)
79−instance Random Word8 where
79+instance Random Int64 where
80+ randomR = integralRandomR
81+ random = randomR (minBound,maxBound)
82+
83+instance Random Word where
84+ randomR = integralRandomR
85+ random = randomR (minBound,maxBound)
86+
87+instance Random Word64 where
8088 randomR = integralRandomR
8189 random = randomR (minBound,maxBound)
8290#endif