Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
applyArbitrary3 :: (Arbitrary a, Arbitrary b, Arbitrary c) => (a -> b -> c -> r) -> Gen rmassiv-test Test.Massiv.Utils Apply a ternary function to random arguments.
-
massiv-test Test.Massiv.Utils Apply a function of arity 4 to random arguments.
coarbitrary :: CoArbitrary a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils Used to generate a function of type a -> b. The first argument is a value, the second a generator. You should use variant to perturb the random generator; the goal is that different values for the first argument will lead to different calls to variant. An example will help:
instance CoArbitrary a => CoArbitrary [a] where coarbitrary [] = variant 0 coarbitrary (x:xs) = variant 1 . coarbitrary (x,xs)
coarbitraryEnum :: Enum a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils A coarbitrary implementation for enums.
coarbitraryIntegral :: Integral a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils A coarbitrary implementation for integral numbers.
coarbitraryReal :: Real a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils A coarbitrary implementation for real numbers.
coarbitraryShow :: Show a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils coarbitrary helper for lazy people :-).
genericCoarbitrary :: (Generic a, GCoArbitrary (Rep a)) => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils Generic CoArbitrary implementation.
liftArbitrary :: Arbitrary1 f => Gen a -> Gen (f a)massiv-test Test.Massiv.Utils No documentation available.
liftArbitrary2 :: Arbitrary2 f => Gen a -> Gen b -> Gen (f a b)massiv-test Test.Massiv.Utils No documentation available.