We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ef09a commit c434319Copy full SHA for c434319
test/utils/Test/Hls/Util.hs
@@ -126,14 +126,13 @@ ignoreForGhcVersions vers reason
126
logFilePath :: String
127
logFilePath = "hls-" ++ show ghcVersion ++ ".log"
128
129
-{- HLINT ignore hlsCommand "Missing NOINLINE pragma" -}
130
-
131
-- | The command to execute the version of hls for the current compiler.
132
--
133
-- Both @stack test@ and @cabal new-test@ setup the environment so @hls@ is
134
-- on PATH. Cabal seems to respond to @build-tool-depends@ specifically while
135
-- stack just puts all project executables on PATH.
136
hlsCommand :: String
+{-# NOINLINE hlsCommand #-}
137
hlsCommand = unsafePerformIO $ do
138
testExe <- fromMaybe "haskell-language-server" <$> lookupEnv "HLS_TEST_EXE"
139
pure $ testExe ++ " --lsp -d -j2 -l test-logs/" ++ logFilePath
0 commit comments