Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. quickCheckWith :: Testable prop => Args -> prop -> IO ()

    QuickCheck Test.QuickCheck

    Tests a property, using test arguments, and prints the results to stdout.

  2. quickCheckWithResult :: Testable prop => Args -> prop -> IO Result

    QuickCheck Test.QuickCheck

    Tests a property, using test arguments, produces a test result, and prints the results to stdout.

  3. quickCheckAll :: Q Exp

    QuickCheck Test.QuickCheck.All

    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!

  4. package quickcheck-instances

    Common quickcheck instances QuickCheck instances. The goal is to supply QuickCheck instances for types provided by the Haskell Platform. Since all of these instances are provided as orphans, I recommend that you do not use this library within another library module, so that you don't impose these instances on down-stream consumers of your code.

  5. package quickcheck-classes

    QuickCheck common typeclasses This library provides QuickCheck properties to ensure that typeclass instances adhere to the set of laws that they are supposed to. There are other libraries that do similar things, such as `genvalidity-hspec` and checkers. This library differs from other solutions by not introducing any new typeclasses that the user needs to learn. Note: on GHC < 8.5, this library uses the higher-kinded typeclasses (Data.Functor.Classes.Show1, Data.Functor.Classes.Eq1, Data.Functor.Classes.Ord1, etc.), but on GHC >= 8.5, it uses `-XQuantifiedConstraints` to express these constraints more cleanly.

  6. package quickcheck-classes-base

    QuickCheck common typeclasses from `base` This libary is a minimal variant of `quickcheck-classes` that only provides laws for typeclasses from base. The main purpose of splitting this out is so that primitive can depend on `quickcheck-classes-base` in its test suite, avoiding the circular dependency that arises if `quickcheck-classes` is used instead. This library provides QuickCheck properties to ensure that typeclass instances adhere to the set of laws that they are supposed to. There are other libraries that do similar things, such as `genvalidity-hspec` and checkers. This library differs from other solutions by not introducing any new typeclasses that the user needs to learn. Note: on GHC < 8.5, this library uses the higher-kinded typeclasses (Data.Functor.Classes.Show1, Data.Functor.Classes.Eq1, Data.Functor.Classes.Ord1, etc.), but on GHC >= 8.5, it uses `-XQuantifiedConstraints` to express these constraints more cleanly.

  7. package quickcheck-simple

    Test properties and default-mains for QuickCheck This package contains definitions of test properties and default-mains using QuickCheck library.

  8. package quickcheck-text

    Alternative arbitrary instance for Text The usual Arbitrary instance for Text (in quickcheck-instances) only has single-byte instances and so isn't an ideal representation of a valid UTF-8 character. This package has generators for one-, two- and three-byte UTF-8 characters (all that are currently in use).

  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. quickCheckResult :: Testable prop => prop -> IO Result

    massiv-test Test.Massiv.Utils

    Tests a property, produces a test result, and prints the results to stdout.

Page 3 of many | Previous | Next