Skip to content

Commit 0aca843

Browse files
committed
io-sim: strict StmTxResult type
1 parent ca185ec commit 0aca843

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

io-sim/src/Control/Monad/IOSim/Types.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,22 +1212,22 @@ data StmTxResult s a =
12121212
--
12131213
-- It also includes the updated TVarId name supply.
12141214
--
1215-
StmTxCommitted a [SomeTVar s] -- ^ written tvars
1216-
[SomeTVar s] -- ^ read tvars
1217-
[SomeTVar s] -- ^ created tvars
1218-
[Dynamic]
1219-
[String]
1220-
TVarId -- updated TVarId name supply
1215+
StmTxCommitted a ![SomeTVar s] -- ^ written tvars
1216+
![SomeTVar s] -- ^ read tvars
1217+
![SomeTVar s] -- ^ created tvars
1218+
![Dynamic]
1219+
![String]
1220+
!TVarId -- updated TVarId name supply
12211221

12221222
-- | A blocked transaction reports the vars that were read so that the
12231223
-- scheduler can block the thread on those vars.
12241224
--
1225-
| StmTxBlocked [SomeTVar s]
1225+
| StmTxBlocked ![SomeTVar s]
12261226

12271227
-- | An aborted transaction reports the vars that were read so that the
12281228
-- vector clock can be updated.
12291229
--
1230-
| StmTxAborted [SomeTVar s] SomeException
1230+
| StmTxAborted ![SomeTVar s] SomeException
12311231

12321232

12331233
-- | A branch indicates that an alternative statement is available in the current

0 commit comments

Comments
 (0)