Skip to content

Commit 57af456

Browse files
committed
fix
1 parent e0c4237 commit 57af456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghcide/src/Development/IDE/Core/Compile.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ import System.IO.Extra (fixIO, newTempFileWithin)
108108
-- See Note [Guidelines For Using CPP In GHCIDE Import Statements]
109109

110110
import GHC.Tc.Gen.Splice
111+
import Control.Concurrent.Async (async, withAsync)
111112

112113

113114

@@ -139,7 +140,6 @@ import GHC.Core.Lint.Interactive
139140
#if MIN_VERSION_ghc(9,7,0)
140141
import Data.Foldable (toList)
141142
import GHC.Unit.Module.Warnings
142-
import Control.Concurrent.Async (async, withAsync)
143143
#else
144144
import Development.IDE.Core.FileStore (shareFilePath)
145145
#endif
@@ -927,7 +927,7 @@ indexHieFile se mod_summary srcPath !hash hf = do
927927
-- Using `finally`, so even if an exception happen during withHieDb call,
928928
-- the the ending part of `reportProgress` (which clean the progress indicator) will still be called.
929929
indexDoneB <- liftIO newBarrier
930-
_ <- async (reportProgress indexDoneB optProgressStyle)
930+
_ <- liftIO $ async (reportProgress indexDoneB optProgressStyle)
931931
flip finally (signalBarrier indexDoneB ()) $
932932
withHieDb (\db -> HieDb.addRefsFromLoaded db targetPath (HieDb.RealFile $ fromNormalizedFilePath srcPath) hash hf')
933933
where

0 commit comments

Comments
 (0)