File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
897
897
898
898
ThrowStm e ->
899
899
{-# SCC "execAtomically.go.ThrowStm" #-}
900
- case ctl of
900
+ case ctl of
901
901
AtomicallyFrame -> do
902
902
-- Revert all the TVar writes
903
903
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
@@ -910,19 +910,19 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
910
910
-- Execute the catch handler with an empty written set
911
911
let ctl'' = BranchFrame EmptyStmA k writtenOuter writtenOuterSeq createdOuterSeq ctl'
912
912
go ctl'' read Map. empty [] [] nextVid (h e)
913
- --
913
+ --
914
914
BranchFrame _ _k writtenOuter writtenOuterSeq createdOuterSeq ctl' ->
915
915
{-# SCC "execAtomically.go.branchFrame" #-} do
916
916
-- Revert all the TVar writes within this orElse
917
917
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
918
918
go ctl' read writtenOuter writtenOuterSeq createdOuterSeq nextVid (ThrowStm e)
919
919
920
- CatchStm a h k ->
920
+ CatchStm a h k ->
921
921
{-# SCC "execAtomically.go.ThrowStm" #-} do
922
922
-- Execute the left side in a new frame with an empty written set
923
923
let ctl' = BranchFrame (CatchStmA h) k written writtenSeq createdSeq ctl
924
924
go ctl' read Map. empty [] [] nextVid a
925
-
925
+
926
926
927
927
Retry ->
928
928
{-# SCC "execAtomically.go.Retry" #-}
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ instance Exceptions.MonadThrow (STM s) where
318
318
instance MonadCatch (STM s ) where
319
319
320
320
catch action handler = STM $ oneShot $ \ k -> CatchStm (runSTM action) (runSTM . handler') k
321
- where
321
+ where
322
322
handler' e = case fromException e of
323
323
Nothing -> throwIO e -- Rethrow the exception if handler does not handle it.
324
324
Just e' -> handler e'
Original file line number Diff line number Diff line change @@ -1108,7 +1108,7 @@ execAtomically time tid tlbl nextVid0 action0 k0 =
1108
1108
1109
1109
ThrowStm e ->
1110
1110
{-# SCC "execAtomically.go.ThrowStm" #-}
1111
- case ctl of
1111
+ case ctl of
1112
1112
AtomicallyFrame -> do
1113
1113
-- Revert all the TVar writes
1114
1114
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
@@ -1121,14 +1121,14 @@ execAtomically time tid tlbl nextVid0 action0 k0 =
1121
1121
-- Execute the catch handler with an empty written set
1122
1122
let ctl'' = BranchFrame EmptyStmA k writtenOuter writtenOuterSeq createdOuterSeq ctl'
1123
1123
go ctl'' read Map. empty [] [] nextVid (h e)
1124
- --
1124
+ --
1125
1125
BranchFrame _ _k writtenOuter writtenOuterSeq createdOuterSeq ctl' ->
1126
1126
{-# SCC "execAtomically.go.branchFrame" #-} do
1127
1127
-- Revert all the TVar writes within this orElse
1128
1128
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
1129
1129
go ctl' read writtenOuter writtenOuterSeq createdOuterSeq nextVid (ThrowStm e)
1130
1130
1131
- CatchStm a h k ->
1131
+ CatchStm a h k ->
1132
1132
{-# SCC "execAtomically.go.ThrowStm" #-} do
1133
1133
-- Execute the left side in a new frame with an empty written set
1134
1134
let ctl' = BranchFrame (CatchStmA h) k written writtenSeq createdSeq ctl
You can’t perform that action at this time.
0 commit comments