Include the CTVarIds of created CTVars in STM Success output

This commit is contained in:
Michael Walker 2015-02-10 11:16:36 +00:00
parent f7b7539445
commit d5e4f94a08

View File

@ -208,8 +208,8 @@ stepTrans fixed act newctvid = case act of
stepNew :: (Ref n r -> CTVarId -> n (STMAction t n r)) -> n (STMAction t n r, n (), CTVarId, [CTVarId], [CTVarId])
stepNew na = do
let newctvid' = I $ unI newctvid + 1
a <- na (wref fixed) newctvid'
return (a, nothing, newctvid', [], [])
a <- na (wref fixed) newctvid
return (a, nothing, newctvid', [], [newctvid])
stepOrElse :: STMLike t n r a -> STMLike t n r a -> (a -> STMAction t n r) -> n (STMAction t n r, n (), CTVarId, [CTVarId], [CTVarId])
stepOrElse a b c = do