Skip to content

Commit 56bd451

Browse files
committed
Convert alert to log message
1 parent 12377dd commit 56bd451

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

ghcide/src/Development/IDE/Main.hs

+6-10
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ import qualified Data.Text as T
2525
import qualified Data.Text.IO as T
2626
import Data.Text.Lazy.Encoding (decodeUtf8)
2727
import qualified Data.Text.Lazy.IO as LT
28-
import Development.IDE (Action, Rules,
29-
hDuplicateTo',
30-
GhcVersion(..),
31-
ghcVersion)
28+
import Development.IDE (Action, GhcVersion (..),
29+
Rules, ghcVersion,
30+
hDuplicateTo')
3231
import Development.IDE.Core.Debouncer (Debouncer,
3332
newAsyncDebouncer)
3433
import Development.IDE.Core.FileStore (isWatchSupported,
@@ -87,7 +86,6 @@ import Ide.Types (IdeCommand (IdeCommand),
8786
PluginId (PluginId),
8887
ipMap)
8988
import qualified Language.LSP.Server as LSP
90-
import qualified Language.LSP.Types as LSP
9189
import Options.Applicative hiding (action)
9290
import qualified System.Directory.Extra as IO
9391
import System.Exit (ExitCode (ExitFailure),
@@ -261,11 +259,9 @@ defaultMain Arguments{..} = do
261259
caps = LSP.resClientCapabilities env
262260
-- FIXME: Remove this after GHC 9 gets fully supported
263261
when (ghcVersion == GHC90) $
264-
LSP.runLspT env $
265-
LSP.sendNotification LSP.SWindowShowMessage $
266-
LSP.ShowMessageParams LSP.MtWarning $
267-
"Currently, HLS supports GHC 9 only partially. "
268-
<> "See [issue #297](https://github.com/haskell/haskell-language-server/issues/297) for more detail."
262+
hPutStrLn stderr $
263+
"Currently, HLS supports GHC 9 only partially. "
264+
<> "See [issue #297](https://github.com/haskell/haskell-language-server/issues/297) for more detail."
269265
initialise
270266
argsDefaultHlsConfig
271267
rules

0 commit comments

Comments
 (0)