on master help sign in
Make the lazy Arbitrary instance chunkier
84f05d0Bryan O'Sullivan
tests/QuickCheckUtils.hs+1−1
@@ -99,7 +99,7 @@ instance Arbitrary T.Text where
99 arbitrary = T.pack `fmap` arbitrary
99 arbitrary = T.pack `fmap` arbitrary
100
100
101instance Arbitrary TL.Text where
101instance Arbitrary TL.Text where
102− arbitrary = TL.pack `fmap` arbitrary
102+ arbitrary = (TL.fromChunks . map notEmpty) `fmap` arbitrary
103
103
104newtype NotEmpty a = NotEmpty { notEmpty :: a }
104newtype NotEmpty a = NotEmpty { notEmpty :: a }
105 deriving (Eq, Ord)
105 deriving (Eq, Ord)