Skip to content

Commit

Permalink
Arbitrary (Dhall.Set.Set a): Add a shrink method
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakobi committed Jul 15, 2019
1 parent ae9ad7d commit 2628ee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dhall/tests/Dhall/Test/QuickCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ instance Eq DeserialiseFailureWithEq where

instance (Arbitrary a, Ord a) => Arbitrary (Set a) where
arbitrary = Dhall.Set.fromList <$> arbitrary
shrink = map Dhall.Set.fromList . shrink . Dhall.Set.toList

lift0 :: a -> Gen a
lift0 = pure
Expand Down

0 comments on commit 2628ee6

Please sign in to comment.