We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f662ce commit e178d4aCopy full SHA for e178d4a
quickcheck-dynamic/src/Test/QuickCheck/StateModel/Variables.hs
@@ -37,6 +37,10 @@ import Test.QuickCheck as QC
37
newtype Var a = Var Int
38
deriving (Eq, Ord, Typeable, Data)
39
40
+-- | Create a fresh symbolic variable with given identifier. While 'Var's are
41
+-- usually created by action generators, this function can be used for example
42
+-- to create a 'Var' in the 'initialState' of a 'StateModel'. A good default
43
+-- value for the identifier is '-1' as this will not be generated otherwise.
44
mkVar :: Int -> Var a
45
mkVar = Var
46
0 commit comments