File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ isThreadBlocked t = case threadStatus t of
105
105
_ -> False
106
106
107
107
labelledTVarId :: TVar s a -> ST s (Labelled TVarId )
108
- labelledTVarId TVar { tvarId, tvarLabel } = ( Labelled tvarId) <$> readSTRef tvarLabel
108
+ labelledTVarId TVar { tvarId, tvarLabel } = Labelled tvarId <$> readSTRef tvarLabel
109
109
110
110
labelledThreads :: Map IOSimThreadId (Thread s a ) -> [Labelled IOSimThreadId ]
111
111
labelledThreads threadMap =
@@ -1037,8 +1037,9 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
1037
1037
-> TVarId -- var fresh name supply
1038
1038
-> StmA s b
1039
1039
-> ST s (SimTrace c )
1040
- go ! ctl ! read ! written ! writtenSeq ! createdSeq ! nextVid action = assert localInvariant $
1041
- case action of
1040
+ go ! ctl ! read ! written ! writtenSeq ! createdSeq ! nextVid action =
1041
+ assert localInvariant $
1042
+ case action of
1042
1043
ReturnStm x ->
1043
1044
case ctl of
1044
1045
AtomicallyFrame -> do
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ instance MonadLabelledSTM (IOSim s) where
473
473
labelTVar tvar label = STM $ \ k -> LabelTVar label tvar (k () )
474
474
labelTVarIO tvar label = IOSim $ oneShot $ \ k ->
475
475
LiftST ( lazyToStrictST $
476
- writeSTRef (tvarLabel tvar) $! ( Just label)
476
+ writeSTRef (tvarLabel tvar) $! Just label
477
477
) k
478
478
labelTQueue = labelTQueueDefault
479
479
labelTBQueue = labelTBQueueDefault
Original file line number Diff line number Diff line change @@ -1362,8 +1362,9 @@ execAtomically time tid tlbl nextVid0 action0 k0 =
1362
1362
-> TVarId -- var fresh name supply
1363
1363
-> StmA s b
1364
1364
-> ST s (SimTrace c )
1365
- go ! ctl ! read ! written ! writtenSeq ! createdSeq ! nextVid action = assert localInvariant $
1366
- case action of
1365
+ go ! ctl ! read ! written ! writtenSeq ! createdSeq ! nextVid action =
1366
+ assert localInvariant $
1367
+ case action of
1367
1368
ReturnStm x ->
1368
1369
case ctl of
1369
1370
AtomicallyFrame -> do
You can’t perform that action at this time.
0 commit comments