1. Bryan O'Sullivan
  2. text

Commits

Bryan O'Sullivan  committed d1ab9e9

Fix test suite build with GHC 7.0.x

  • Participants
  • Parent commits 4e3e8f2
  • Branches default

Comments (0)

Files changed (1)

File tests/Tests/QuickCheckUtils.hs

View file
  • Ignore whitespace
 instance Arbitrary B.ByteString where
     arbitrary     = B.pack `fmap` arbitrary
 
+#if !MIN_VERSION_base(4,4,0)
+instance Random Word8 where
+    randomR = integralRandomR
+    random  = randomR (minBound,maxBound)
+#endif
+
 genUnicode :: IsString a => Gen a
 genUnicode = fmap fromString string where
     string = sized $ \n ->