lazysmallcheck-0.6: A library for demand-driven testing of Haskell programs

Test.LazySmallCheck

Description

For documentation, see the paper SmallCheck and Lazy SmallCheck: automatic exhaustive testing for small values available at http://www.cs.york.ac.uk/fp/smallcheck/. Several examples are also included in the package.

Documentation

class Serial a whereSource

Methods

series :: Series aSource

Instances

Serial Bool 
Serial Char 
Serial Double 
Serial Float 
Serial Int 
Serial Integer 
Serial () 
Serial a => Serial [a] 
Serial a => Serial (Maybe a) 
(Serial a, Serial b) => Serial (Either a b) 
(Serial a, Serial b) => Serial (a, b) 
(Serial a, Serial b, Serial c) => Serial (a, b, c) 
(Serial a, Serial b, Serial c, Serial d) => Serial (a, b, c, d) 
(Serial a, Serial b, Serial c, Serial d, Serial e) => Serial (a, b, c, d, e) 

type Series a = Int -> Cons aSource

data Cons a Source

cons :: a -> Series aSource

(><) :: Series (a -> b) -> Series a -> Series bSource

drawnFrom :: [a] -> Cons aSource

cons1 :: Serial a => (a -> b) -> Series bSource

cons2 :: (Serial a, Serial b) => (a -> b -> c) -> Series cSource

cons3 :: (Serial a, Serial b, Serial c) => (a -> b -> c -> d) -> Series dSource

cons4 :: (Serial a, Serial b, Serial c, Serial d) => (a -> b -> c -> d -> e) -> Series eSource

cons5 :: (Serial a, Serial b, Serial c, Serial d, Serial e) => (a -> b -> c -> d -> e -> f) -> Series fSource

class Testable a Source

Instances

test :: Testable a => a -> IO ()Source