File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,12 @@ import Test.QuickCheck.Classes.Semigroup.Cancellative
89
89
)
90
90
import Test.QuickCheck.Classes.Semigroup.Factorial
91
91
( factorialLaws , stableFactorialLaws )
92
- import Test.QuickCheck.Instances.Vector
93
- ()
94
92
import Test.QuickCheck.Property
95
93
( Result (.. ), mapTotalResult )
96
94
97
95
import qualified Data.ByteString.Lazy as ByteString
98
96
import qualified Data.Text as Text
97
+ import qualified Data.Vector as Vector
99
98
100
99
spec :: Spec
101
100
spec = do
@@ -591,6 +590,10 @@ instance Arbitrary Natural where
591
590
arbitrary = elements [0 .. 3 ]
592
591
shrink = shrinkIntegral
593
592
593
+ instance Arbitrary a => Arbitrary (Vector a ) where
594
+ arbitrary = Vector. fromList <$> arbitrary
595
+ shrink = shrinkMap Vector. fromList Vector. toList
596
+
594
597
--------------------------------------------------------------------------------
595
598
-- Coverage checks
596
599
--------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments