quickcheck-dynamic-3.0.0: A library for stateful property-based testing
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.QuickCheck.StateModel.Variables

Synopsis

Documentation

data Var a Source #

A symbolic variable for a value of type a

Instances

Instances details
Data a => Data (Var a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Var a -> c (Var a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Var a) #

toConstr :: Var a -> Constr #

dataTypeOf :: Var a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Var a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Var a)) #

gmapT :: (forall b. Data b => b -> b) -> Var a -> Var a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Var a -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Var a -> r #

gmapQ :: (forall d. Data d => d -> u) -> Var a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Var a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Var a -> m (Var a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Var a -> m (Var a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Var a -> m (Var a) #

Show (Var a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

showsPrec :: Int -> Var a -> ShowS #

show :: Var a -> String #

showList :: [Var a] -> ShowS #

Eq (Var a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

(==) :: Var a -> Var a -> Bool #

(/=) :: Var a -> Var a -> Bool #

Ord (Var a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

compare :: Var a -> Var a -> Ordering #

(<) :: Var a -> Var a -> Bool #

(<=) :: Var a -> Var a -> Bool #

(>) :: Var a -> Var a -> Bool #

(>=) :: Var a -> Var a -> Bool #

max :: Var a -> Var a -> Var a #

min :: Var a -> Var a -> Var a #

Typeable a => HasVariables (Var a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

getAllVariables :: Var a -> Set (Any Var) Source #

data Any f where Source #

Constructors

Some :: (Typeable a, Eq (f a)) => f a -> Any f 

Instances

Instances details
(forall a. Show (Action state a)) => Show (Any (Action state)) Source # 
Instance details

Defined in Test.QuickCheck.StateModel

Methods

showsPrec :: Int -> Any (Action state) -> ShowS #

show :: Any (Action state) -> String #

showList :: [Any (Action state)] -> ShowS #

Eq (Any f) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

(==) :: Any f -> Any f -> Bool #

(/=) :: Any f -> Any f -> Bool #

(forall a. Ord (f a)) => Ord (Any f) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

compare :: Any f -> Any f -> Ordering #

(<) :: Any f -> Any f -> Bool #

(<=) :: Any f -> Any f -> Bool #

(>) :: Any f -> Any f -> Bool #

(>=) :: Any f -> Any f -> Bool #

max :: Any f -> Any f -> Any f #

min :: Any f -> Any f -> Any f #

class HasVariables a where Source #

This type class gives you a way to get all the symbolic variables that appear in a value.

Minimal complete definition

Nothing

Methods

getAllVariables :: a -> Set (Any Var) Source #

default getAllVariables :: (Generic a, GenericHasVariables (Rep a)) => a -> Set (Any Var) Source #

Instances

Instances details
HasVariables Integer Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

HasVariables Char Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

HasVariables Int Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

(Generic a, GenericHasVariables (Rep a)) => HasVariables a Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

getAllVariables :: a -> Set (Any Var) Source #

HasVariables a => HasVariables (Smart a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

HasVariables a => HasVariables (Set a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

getAllVariables :: Set a -> Set (Any Var) Source #

StateModel s => HasVariables (FailingAction s) Source # 
Instance details

Defined in Test.QuickCheck.DynamicLogic.Internal

(forall a. HasVariables (Action state a)) => HasVariables (Step state) Source # 
Instance details

Defined in Test.QuickCheck.StateModel

Methods

getAllVariables :: Step state -> Set (Any Var) Source #

HasVariables (HasNoVariables a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Typeable a => HasVariables (Var a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

getAllVariables :: Var a -> Set (Any Var) Source #

(HasVariables k, HasVariables v) => HasVariables (Map k v) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

Methods

getAllVariables :: Map k v -> Set (Any Var) Source #

data HasNoVariables a Source #

Instances

Instances details
HasVariables (HasNoVariables a) Source # 
Instance details

Defined in Test.QuickCheck.StateModel.Variables

mkVar :: Int -> Var a Source #