Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Var a
- data Any f where
- class HasVariables a where
- getAllVariables :: a -> Set (Any Var)
- data HasNoVariables a
- data VarContext
- mkVar :: Int -> Var a
- ctxAtType :: Typeable a => VarContext -> [Var a]
- arbitraryVar :: Typeable a => VarContext -> Gen (Var a)
- shrinkVar :: Typeable a => VarContext -> Var a -> [Var a]
- extendContext :: Typeable a => VarContext -> Var a -> VarContext
- isWellTyped :: Typeable a => Var a -> VarContext -> Bool
- allVariables :: HasVariables a => a -> VarContext
- unsafeCoerceVar :: Var a -> Var b
Documentation
A symbolic variable for a value of type a
Instances
Data a => Data (Var a) Source # | |
Defined in Test.QuickCheck.StateModel.Variables 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) # 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 # | |
Eq (Var a) Source # | |
Ord (Var a) Source # | |
Typeable a => HasVariables (Var a) Source # | |
Defined in Test.QuickCheck.StateModel.Variables |
class HasVariables a where Source #
This type class gives you a way to get all the symbolic variables that appear in a value.
Nothing
Instances
data HasNoVariables a Source #
Instances
HasVariables (HasNoVariables a) Source # | |
Defined in Test.QuickCheck.StateModel.Variables getAllVariables :: HasNoVariables a -> Set (Any Var) Source # |
data VarContext Source #
Instances
Monoid VarContext Source # | |
Defined in Test.QuickCheck.StateModel.Variables mempty :: VarContext # mappend :: VarContext -> VarContext -> VarContext # mconcat :: [VarContext] -> VarContext # | |
Semigroup VarContext Source # | |
Defined in Test.QuickCheck.StateModel.Variables (<>) :: VarContext -> VarContext -> VarContext # sconcat :: NonEmpty VarContext -> VarContext # stimes :: Integral b => b -> VarContext -> VarContext # | |
Show VarContext Source # | |
Defined in Test.QuickCheck.StateModel.Variables showsPrec :: Int -> VarContext -> ShowS # show :: VarContext -> String # showList :: [VarContext] -> ShowS # |
arbitraryVar :: Typeable a => VarContext -> Gen (Var a) Source #
extendContext :: Typeable a => VarContext -> Var a -> VarContext Source #
isWellTyped :: Typeable a => Var a -> VarContext -> Bool Source #
allVariables :: HasVariables a => a -> VarContext Source #
unsafeCoerceVar :: Var a -> Var b Source #