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.

  1. applyArbitrary3 :: (Arbitrary a, Arbitrary b, Arbitrary c) => (a -> b -> c -> r) -> Gen r

    massiv-test Test.Massiv.Utils

    Apply a ternary function to random arguments.

  2. applyArbitrary4 :: (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d) => (a -> b -> c -> d -> r) -> Gen r

    massiv-test Test.Massiv.Utils

    Apply a function of arity 4 to random arguments.

  3. coarbitrary :: CoArbitrary a => a -> Gen b -> Gen b

    massiv-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)
    

  4. coarbitraryEnum :: Enum a => a -> Gen b -> Gen b

    massiv-test Test.Massiv.Utils

    A coarbitrary implementation for enums.

  5. coarbitraryIntegral :: Integral a => a -> Gen b -> Gen b

    massiv-test Test.Massiv.Utils

    A coarbitrary implementation for integral numbers.

  6. coarbitraryReal :: Real a => a -> Gen b -> Gen b

    massiv-test Test.Massiv.Utils

    A coarbitrary implementation for real numbers.

  7. coarbitraryShow :: Show a => a -> Gen b -> Gen b

    massiv-test Test.Massiv.Utils

    coarbitrary helper for lazy people :-).

  8. genericCoarbitrary :: (Generic a, GCoArbitrary (Rep a)) => a -> Gen b -> Gen b

    massiv-test Test.Massiv.Utils

    Generic CoArbitrary implementation.

  9. liftArbitrary :: Arbitrary1 f => Gen a -> Gen (f a)

    massiv-test Test.Massiv.Utils

    No documentation available.

  10. liftArbitrary2 :: Arbitrary2 f => Gen a -> Gen b -> Gen (f a b)

    massiv-test Test.Massiv.Utils

    No documentation available.

Page 61 of many | Previous | Next