QuickCheck-2.1.2: Automatic testing of Haskell programs

Test.QuickCheck.Function

Documentation

data Fun a b Source

Constructors

Fun (a :-> b) (a -> b) 

Instances

(Show a, Show b) => Show (Fun a b) 
(FunArbitrary a, Arbitrary b) => Arbitrary (Fun a b) 

apply :: Fun a b -> a -> bSource

data a :-> c Source

Instances

Functor (:-> a) 
(Show a, Show b) => Show (:-> a b) 
(FunArbitrary a, Arbitrary c) => Arbitrary (:-> a c) 

funArbitraryMap :: (FunArbitrary a, Arbitrary c) => (b -> a) -> (a -> b) -> Gen (b :-> c)Source