Skip to content

Commit

Permalink
Remove unused function forAll2
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Dec 8, 2024
1 parent 9b8c189 commit 7906771
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions hydra-test-utils/src/Test/Hydra/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module Test.Hydra.Prelude (
reasonablySized,
ReasonablySized (..),
genericCoverTable,
forAll2,
pickBlind,
module Test.Hspec,
module Test.Hspec.QuickCheck,
Expand Down Expand Up @@ -210,18 +209,6 @@ genericCoverTable xs =
enumerate = [minBound .. maxBound]
numberOfLabels = toInteger $ length allLabels

-- | Shorthand for using 2 generated values in a property.
forAll2 ::
(Testable property, Show a, Show b) =>
Gen a ->
Gen b ->
((a, b) -> property) ->
Property
forAll2 genA genB action =
forAll genA $ \a ->
forAll genB $ \b ->
action (a, b)

-- | Like 'pick' but using 'forAllBlind' under the hood.
pickBlind :: Monad m => Gen a -> PropertyM m a
pickBlind gen = MkPropertyM $ \k -> do
Expand Down

0 comments on commit 7906771

Please sign in to comment.