Skip to content

Commit cddb8a7

Browse files
committed
Reorder functions in where
1 parent 5490865 commit cddb8a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Control/Concurrent/Execute.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ sortActions = sortBy (compareConcurrency `on` actionConcurrency)
119119
runActions' :: ExecuteState -> IO ()
120120
runActions' ExecuteState {..} = loop
121121
where
122+
loop :: IO ()
123+
loop = join $ atomically $ breakOnErrs $ withActions processActions
124+
122125
breakOnErrs :: STM (IO ()) -> STM (IO ())
123126
breakOnErrs inner = do
124127
errs <- readTVar esExceptions
@@ -133,9 +136,6 @@ runActions' ExecuteState {..} = loop
133136
then doNothing
134137
else inner actions
135138

136-
loop :: IO ()
137-
loop = join $ atomically $ breakOnErrs $ withActions processActions
138-
139139
processActions :: [Action] -> STM (IO ())
140140
processActions actions = do
141141
inAction <- readTVar esInAction

0 commit comments

Comments
 (0)