Haskell QuickCheck2 using ByteString?

后端 未结 1 979
夕颜
夕颜 2021-01-11 14:28

The RWH books says that to get ByteString support, I need to add:

instance Arbitrary B.ByteString where
    arbitrary   = fmap B.pack arbitrary
    coarbitra         


        
1条回答
  •  忘掉有多难
    2021-01-11 15:18

    coarbitrary has moved to it's own typeclass CoAbritary in QC 2.0, so simply just remove the equation for coarbitrary.

    Also see the latest documentation.

    0 讨论(0)
提交回复
热议问题