@@ -485,7 +485,7 @@ instance Arbitrary a => Arbitrary (NonEmpty a) where
485arbitraryScore :: Gen Score
485arbitraryScore :: Gen Score
486arbitraryScore = fmap getPositive <$> arbitrary
486arbitraryScore = fmap getPositive <$> arbitrary
488−instance Arbitrary a => Arbitrary (Hit a) where
488+instance (Arbitrary a, Typeable a) => Arbitrary (Hit a) where
489 arbitrary = Hit <$> arbitrary
489 arbitrary = Hit <$> arbitrary
490 <*> arbitrary
490 <*> arbitrary
491 <*> arbitrary
491 <*> arbitrary
@@ -495,7 +495,7 @@ instance Arbitrary a => Arbitrary (Hit a) where
495 shrink = genericShrink
495 shrink = genericShrink
498−instance Arbitrary a => Arbitrary (SearchHits a) where
498+instance (Arbitrary a, Typeable a) => Arbitrary (SearchHits a) where
499 arbitrary = reduceSize $ do
499 arbitrary = reduceSize $ do
500 tot <- getPositive <$> arbitrary
500 tot <- getPositive <$> arbitrary
501 score <- arbitraryScore
501 score <- arbitraryScore