@@ -25,10 +25,9 @@ import qualified Data.Text as T
25
25
import qualified Data.Text.IO as T
26
26
import Data.Text.Lazy.Encoding (decodeUtf8 )
27
27
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' )
32
31
import Development.IDE.Core.Debouncer (Debouncer ,
33
32
newAsyncDebouncer )
34
33
import Development.IDE.Core.FileStore (isWatchSupported ,
@@ -87,7 +86,6 @@ import Ide.Types (IdeCommand (IdeCommand),
87
86
PluginId (PluginId ),
88
87
ipMap )
89
88
import qualified Language.LSP.Server as LSP
90
- import qualified Language.LSP.Types as LSP
91
89
import Options.Applicative hiding (action )
92
90
import qualified System.Directory.Extra as IO
93
91
import System.Exit (ExitCode (ExitFailure ),
@@ -261,11 +259,9 @@ defaultMain Arguments{..} = do
261
259
caps = LSP. resClientCapabilities env
262
260
-- FIXME: Remove this after GHC 9 gets fully supported
263
261
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."
269
265
initialise
270
266
argsDefaultHlsConfig
271
267
rules
0 commit comments