Oh yeah, old GHCs need that typeable

This commit is contained in:
Michael Xavier 2017-01-11 12:59:10 -08:00
parent 167426efc4
commit 908e23ead4

View File

@ -643,7 +643,7 @@ instance Arbitrary a => Arbitrary (NonEmpty a) where
arbitraryScore :: Gen Score
arbitraryScore = fmap getPositive <$> arbitrary
instance (Arbitrary a) => Arbitrary (Hit a) where
instance (Arbitrary a, Typeable a) => Arbitrary (Hit a) where
arbitrary = Hit <$> arbitrary
<*> arbitrary
<*> arbitrary
@ -653,7 +653,7 @@ instance (Arbitrary a) => Arbitrary (Hit a) where
shrink = genericShrink
instance (Arbitrary a) => Arbitrary (SearchHits a) where
instance (Arbitrary a, Typeable a) => Arbitrary (SearchHits a) where
arbitrary = reduceSize $ do
tot <- getPositive <$> arbitrary
score <- arbitraryScore