on master help sign in
Fix tests under GHC 7.0
a593eaaBryan O'Sullivan
tests/Tests/QuickCheckUtils.hs+9−1
@@ -76,7 +76,15 @@ instance Arbitrary B.ByteString where
76 shrink = map B.pack . shrink . B.unpack
76 shrink = map B.pack . shrink . B.unpack
77
77
78#if !MIN_VERSION_base(4,4,0)
78#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
80 randomR = integralRandomR
88 randomR = integralRandomR
81 random = randomR (minBound,maxBound)
89 random = randomR (minBound,maxBound)
82#endif
90#endif