Skip to content

Commit

Permalink
don't rely on getDown
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAlgehed committed Mar 21, 2024
1 parent f70d4d3 commit f1e767c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/QuickCheck/Arbitrary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ instance Arbitrary NewlineMode where
#if MIN_VERSION_base(4,6,0)
instance Arbitrary1 Down where
liftArbitrary = fmap Down
liftShrink shr = fmap Down . shr . getDown
liftShrink shr (Down a) = Down <$> shr a
instance Arbitrary a => Arbitrary (Down a) where
arbitrary = arbitrary1
shrink = shrink1
Expand Down

0 comments on commit f1e767c

Please sign in to comment.