RWH 书籍说要获得 ByteString 支持,我需要添加:
instance Arbitrary B.ByteString where
arbitrary = fmap B.pack arbitrary
coarbitrary = coarbitrary . B.unpack
但是我的带有 QuickCheck 2.4.1.1 的 GHC 7.2 告诉我:
`coarbitrary' is not a (visible) method of class `Arbitrary'
任何指针?