Skip to content

Commit 969bce9

Browse files
committed
workaround hlint bug
1 parent 8483c7b commit 969bce9

File tree

1 file changed

+3
-2
lines changed
  • plugins/hls-hlint-plugin/src/Ide/Plugin

1 file changed

+3
-2
lines changed

plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ import System.Environment (setEnv,
6666
import Development.IDE.GHC.Compat (DynFlags,
6767
extensionFlags,
6868
ms_hspp_opts,
69-
topDir)
69+
topDir,
70+
uninterruptibleMaskM_)
7071
import qualified Development.IDE.GHC.Compat.Util as EnumSet
7172

7273
#if MIN_GHC_API_VERSION(9,4,0)
@@ -205,7 +206,7 @@ rules recorder plugin = do
205206

206207
defineNoFile (cmapWithPrio LogShake recorder) $ \GetHlintSettings -> do
207208
(Config flags) <- getHlintConfig plugin
208-
liftIO $ argsSettings flags
209+
liftIO $ uninterruptibleMask_ $ argsSettings flags
209210

210211
action $ do
211212
files <- Map.keys <$> getFilesOfInterestUntracked

0 commit comments

Comments
 (0)