Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. forAllM :: forall (m :: Type -> Type) a b . (Monad m, Show a) => Gen a -> (a -> PropertyM m b) -> PropertyM m b

    massiv-test Test.Massiv.Utils

    Quantification in monadic properties to pick, with a notation similar to forAll. Note: values generated by forAllM do not shrink.

  2. forAllProperties :: Q Exp

    massiv-test Test.Massiv.Utils

    Test all properties in the current module, using a custom quickCheck function. The same caveats as with quickCheckAll apply. $forAllProperties has type (Property -> IO Result) -> IO Bool. An example invocation is $forAllProperties quickCheckResult, which does the same thing as $quickCheckAll. forAllProperties has the same issue with scoping as quickCheckAll: see the note there about return [].

  3. forAllShow :: Testable prop => Gen a -> (a -> String) -> (a -> prop) -> Property

    massiv-test Test.Massiv.Utils

    Like forAll, but with an explicitly given show function.

  4. forAllShrink :: (Show a, Testable prop) => Gen a -> (a -> [a]) -> (a -> prop) -> Property

    massiv-test Test.Massiv.Utils

    Like forAll, but tries to shrink the argument for failing test cases.

  5. forAllShrinkBlind :: Testable prop => Gen a -> (a -> [a]) -> (a -> prop) -> Property

    massiv-test Test.Massiv.Utils

    Like forAllShrink, but without printing the generated value.

  6. forAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> String) -> (a -> prop) -> Property

    massiv-test Test.Massiv.Utils

    Like forAllShrink, but with an explicitly given show function.

  7. getSmall :: Small a -> a

    massiv-test Test.Massiv.Utils

    No documentation available.

  8. propertyForAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> [String]) -> (a -> prop) -> Property

    massiv-test Test.Massiv.Utils

    Optional; used internally in order to improve shrinking. Tests a property but also quantifies over an extra value (with a custom shrink and show function). The Testable instance for functions defines propertyForAllShrinkShow in a way that improves shrinking.

  9. quickCheckAll :: Q Exp

    massiv-test Test.Massiv.Utils

    Test all properties in the current module. The name of the property must begin with prop_. Polymorphic properties will be defaulted to Integer. Returns True if all tests succeeded, False otherwise. To use quickCheckAll, add a definition to your module along the lines of

    return []
    runTests = $quickCheckAll
    
    and then execute runTests. Note: the bizarre return [] in the example above is needed on GHC 7.8 and later; without it, quickCheckAll will not be able to find any of the properties. For the curious, the return [] is a Template Haskell splice that makes GHC insert the empty list of declarations at that point in the program; GHC typechecks everything before the return [] before it starts on the rest of the module, which means that the later call to quickCheckAll can see everything that was defined before the return []. Yikes!

  10. selectErrorCall :: ErrorCall -> Bool

    massiv-test Test.Massiv.Utils

    No documentation available.

Page 693 of many | Previous | Next