mirror of
https://github.com/typeable/bloodhound.git
synced 2024-12-02 06:30:29 +03:00
Oh yeah, old GHCs need that typeable
This commit is contained in:
parent
167426efc4
commit
908e23ead4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user