quickCheckAll runs every QuickCheck property defined in a module. It finds properties by their prop_ naming convention, then applies quickCheck automatically using Template Haskell. section 9.5.3
A practical test-suite setup requires:
- Name properties with the prop_ prefix so quickCheckAll can collect them. section 9.5.3
Collecting properties in a suite
A module can define prop_true and prop_false, then expose runTests :: IO Bool with runTests = $quickCheckAll. A separate Main module can run this suite alongside others and convert the combined result into the process exit code used by stack test.
