Hoogle Search

Within LTS Haskell 24.70 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. insertSetBy :: (a -> a -> Ordering) -> a -> [a] -> [a]

    data-ordlist Data.List.Ordered

    The insertSetBy function is the non-overloaded version of insertSet.

  2. subset :: Ord a => [a] -> [a] -> Bool

    data-ordlist Data.List.Ordered

    The subset function returns true if the first list is a sub-list of the second.

  3. subsetBy :: (a -> a -> Ordering) -> [a] -> [a] -> Bool

    data-ordlist Data.List.Ordered

    The subsetBy function is the non-overloaded version of subset.

  4. data WithSetup x

    dejafu Test.DejaFu

    A type used to constrain Program: a Program (WithSetup x) is a program with some set-up action producing a value of type x. Construct with withSetup.

  5. data WithSetupAndTeardown x y

    dejafu Test.DejaFu

    A type used to constrain Program: a Program (WithSetupAndTeardown x y) is a program producing a value of type y with some set-up action producing a value of type x and a teardown action producing the final result. Construct with withTeardown or withSetupAndTeardown.

  6. autocheckWithSettings :: (MonadDejaFu n, MonadIO n, Eq a, Show a) => Settings n a -> Program pty n a -> n Bool

    dejafu Test.DejaFu

    Variant of autocheck which takes a settings record.

    >>> autocheckWithSettings (fromWayAndMemType defaultWay defaultMemType) relaxed
    [pass] Successful
    [fail] Deterministic
    (False,True) S0---------S1----S0--S2----S0--
    
    (False,False) S0---------S1--P2----S1--S0---
    
    (True,False) S0---------S2----S1----S0---
    
    (True,True) S0---------S1-C-S2----S1---S0---
    False
    
    >>> autocheckWithSettings (fromWayAndMemType defaultWay SequentialConsistency) relaxed
    [pass] Successful
    [fail] Deterministic
    (False,True) S0---------S1----S0--S2----S0--
    
    (True,True) S0---------S1-P2----S1---S0---
    
    (True,False) S0---------S2----S1----S0---
    False
    

  7. dejafuWithSettings :: (MonadDejaFu n, MonadIO n, Show b) => Settings n a -> String -> ProPredicate a b -> Program pty n a -> n Bool

    dejafu Test.DejaFu

    Variant of dejafu which takes a settings record.

    >>> import System.Random
    
    >>> dejafuWithSettings (fromWayAndMemType (randomly (mkStdGen 1) 100) defaultMemType) "Randomly!" alwaysSame example
    [fail] Randomly!
    "hello" S0----S1--S0--
    
    "world" S0---P2--S0--
    False
    

  8. dejafusWithSettings :: (MonadDejaFu n, MonadIO n, Show b) => Settings n a -> [(String, ProPredicate a b)] -> Program pty n a -> n Bool

    dejafu Test.DejaFu

    Variant of dejafus which takes a settings record.

    >>> dejafusWithSettings (fromWayAndMemType defaultWay SequentialConsistency) [("A", alwaysSame), ("B", exceptionsNever)] relaxed
    [fail] A
    (False,True) S0---------S1----S0--S2----S0--
    
    (True,True) S0---------S1-P2----S1---S0---
    
    (True,False) S0---------S2----S1----S0---
    [pass] B
    False
    

  9. runTestWithSettings :: MonadDejaFu n => Settings n a -> ProPredicate a b -> Program pty n a -> n (Result b)

    dejafu Test.DejaFu

    Variant of runTest which takes a settings record. The exact executions tried, and the order in which results are found, is unspecified and may change between releases. This may affect which failing traces are reported, when there is a failure.

  10. withSetup :: forall (n :: Type -> Type) x a . Program Basic n x -> (x -> Program Basic n a) -> Program (WithSetup x) n a

    dejafu Test.DejaFu

    A concurrent program with some set-up action. In terms of results, this is the same as setup >>= program. However, the setup action will be snapshotted (see recordSnapshot and runSnapshot) by the testing functions. This means that even if dejafu runs this program many many times, the setup action will only be run the first time, and its effects remembered for subsequent executions.

Page 1550 of many | Previous | Next