quickcheck-higherorder-0.1.0.1: QuickCheck extension for higher-order properties
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.QuickCheck.HigherOrder.Internal.Testable.Class

Synopsis

An alternative Testable

class Testable' prop where Source #

Types that represent testable properties.

This is a clone of the Testable class with an improved function instance.

Methods

property' :: prop -> Property Source #

Instances

Instances details
Testable' Bool Source # 
Instance details

Defined in Test.QuickCheck.HigherOrder.Internal.Testable.Class

Testable' Property Source #

A Property is the canonical type of testable properties.

property' @Property = property @Property = id
Instance details

Defined in Test.QuickCheck.HigherOrder.Internal.Testable.Class

Testable' a => Testable' (Gen a) Source #

A generator represents a universally quantified property.

Instance details

Defined in Test.QuickCheck.HigherOrder.Internal.Testable.Class

Methods

property' :: Gen a -> Property Source #

TestEq a => Testable' (Equation a) Source # 
Instance details

Defined in Test.QuickCheck.HigherOrder.Internal.Testable

(Constructible a, Testable' b) => Testable' (a -> b) Source #

A function represents a universally quantified property.

Instance details

Defined in Test.QuickCheck.HigherOrder.Internal.Testable.Class

Methods

property' :: (a -> b) -> Property Source #

(Decidable a, Testable' b) => Testable' (Implication a b) Source #

Just use (==>).

Instance details

Defined in Test.QuickCheck.HigherOrder.Internal.Testable

Helpers

forAll_ :: forall a prop. (Constructible a, Testable' prop) => (a -> prop) -> Property Source #

Equivalent to property' specialized to functions: convert a function to a Property.