File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ import System.IO.Extra (fixIO, newTempFileWithin)
108
108
-- See Note [Guidelines For Using CPP In GHCIDE Import Statements]
109
109
110
110
import GHC.Tc.Gen.Splice
111
+ import Control.Concurrent.Async (async , withAsync )
111
112
112
113
113
114
@@ -139,7 +140,6 @@ import GHC.Core.Lint.Interactive
139
140
#if MIN_VERSION_ghc(9,7,0)
140
141
import Data.Foldable (toList )
141
142
import GHC.Unit.Module.Warnings
142
- import Control.Concurrent.Async (async , withAsync )
143
143
#else
144
144
import Development.IDE.Core.FileStore (shareFilePath )
145
145
#endif
@@ -927,7 +927,7 @@ indexHieFile se mod_summary srcPath !hash hf = do
927
927
-- Using `finally`, so even if an exception happen during withHieDb call,
928
928
-- the the ending part of `reportProgress` (which clean the progress indicator) will still be called.
929
929
indexDoneB <- liftIO newBarrier
930
- _ <- async (reportProgress indexDoneB optProgressStyle)
930
+ _ <- liftIO $ async (reportProgress indexDoneB optProgressStyle)
931
931
flip finally (signalBarrier indexDoneB () ) $
932
932
withHieDb (\ db -> HieDb. addRefsFromLoaded db targetPath (HieDb. RealFile $ fromNormalizedFilePath srcPath) hash hf')
933
933
where
You can’t perform that action at this time.
0 commit comments