Skip to content

Commit 6baa010

Browse files
committed
clean up
1 parent 3e4d00a commit 6baa010

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ compute :: Database -> Stack -> Key -> RunMode -> Maybe Result -> IO Result
185185
-- compute _ st k _ _ | traceShow ("compute", st, k) False = undefined
186186
compute db@Database{..} stack key mode result = do
187187
let act = runRule databaseRules key (fmap resultData result) mode
188-
deps <- liftIO $ newIORef UnknownDeps
188+
deps <- newIORef UnknownDeps
189189
(execution, RunResult{..}) <-
190-
liftIO $ duration $ runReaderT (fromAction act) $ SAction db deps stack
191-
curStep <- liftIO $ readTVarIO databaseStep
192-
deps <- liftIO $ readIORef deps
190+
duration $ runReaderT (fromAction act) $ SAction db deps stack
191+
curStep <- readTVarIO databaseStep
192+
deps <- readIORef deps
193193
let lastChanged = maybe curStep resultChanged result
194194
let lastBuild = maybe curStep resultBuilt result
195195
-- changed time is always older than or equal to build time
@@ -212,12 +212,12 @@ compute db@Database{..} stack key mode result = do
212212
-- If an async exception strikes before the deps have been recorded,
213213
-- we won't be able to accurately propagate dirtiness for this key
214214
-- on the next build.
215-
liftIO $ void $
215+
void $
216216
updateReverseDeps key db
217217
(getResultDepsDefault mempty previousDeps)
218218
deps
219219
_ -> pure ()
220-
liftIO $ atomicallyNamed "compute and run hook" $ do
220+
atomicallyNamed "compute and run hook" $ do
221221
runHook
222222
SMap.focus (updateStatus $ Clean res) key databaseValues
223223
pure res

0 commit comments

Comments
 (0)