Skip to content

Commit 2f05004

Browse files
comments
1 parent 2c9c5a6 commit 2f05004

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

quickcheck-dynamic/test/Spec/DynamicLogic/Registry.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import Data.List qualified as List
1111

1212
data Reg m = Reg
1313
{ registered :: [(String, ThreadId m)]
14+
-- This is because IOSim doesn't have a way to tell if a thread is alive or
15+
-- not
1416
, aliveThreads :: [ThreadId m]
1517
}
1618

quickcheck-dynamic/test/Spec/DynamicLogic/RegistryModel.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ instance GoodMonad m => RunModel (RegState m) (RegM m) where
167167
counterexample (show res ++ " <- " ++ show act ++ "\n -- State: " ++ show s')
168168
. tabulate "Registry size" [show $ Map.size (regs s')]
169169

170+
-- NOTE: We rely on the default implementation of `performPar` here because
171+
-- `perform` doesn't actually look at the state.
170172
instance GoodMonad m => RunModelPar (RegState m) (RegM m)
171173

172174
data ShowDict a where

0 commit comments

Comments
 (0)