Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
insertSetBy :: (a -> a -> Ordering) -> a -> [a] -> [a]data-ordlist Data.List.Ordered The insertSetBy function is the non-overloaded version of insertSet.
subset :: Ord a => [a] -> [a] -> Booldata-ordlist Data.List.Ordered The subset function returns true if the first list is a sub-list of the second.
subsetBy :: (a -> a -> Ordering) -> [a] -> [a] -> Booldata-ordlist Data.List.Ordered The subsetBy function is the non-overloaded version of subset.
-
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.
-
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.
-
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
-
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
-
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 -
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.
-
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.