Skip to content

Commit 0bd4a20

Browse files
committed
use strict modifyIORef'
1 parent bbe1be6 commit 0bd4a20

File tree

1 file changed

+2
-2
lines changed
  • hls-graph/src/Development/IDE/Graph/Internal

1 file changed

+2
-2
lines changed

hls-graph/src/Development/IDE/Graph/Internal/Action.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type ShakeValue a = (Show a, Typeable a, Eq a, Hashable a, NFData a)
3838
alwaysRerun :: Action ()
3939
alwaysRerun = do
4040
ref <- Action $ asks actionDeps
41-
liftIO $ modifyIORef ref (AlwaysRerunDeps mempty <>)
41+
liftIO $ modifyIORef' ref (AlwaysRerunDeps mempty <>)
4242

4343
-- No-op for now
4444
reschedule :: Double -> Action ()
@@ -120,7 +120,7 @@ apply ks = do
120120
stack <- Action $ asks actionStack
121121
(is, vs) <- liftIO $ build db stack ks
122122
ref <- Action $ asks actionDeps
123-
liftIO $ modifyIORef ref (ResultDeps [fromListKeySet $ toList is] <>)
123+
liftIO $ modifyIORef' ref (ResultDeps [fromListKeySet $ toList is] <>)
124124
pure vs
125125

126126
-- | Evaluate a list of keys without recording any dependencies.

0 commit comments

Comments
 (0)