@@ -25,10 +25,9 @@ import qualified Data.Text as T
2525import qualified Data.Text.IO as T
2626import Data.Text.Lazy.Encoding (decodeUtf8 )
2727import 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' )
3231import Development.IDE.Core.Debouncer (Debouncer ,
3332 newAsyncDebouncer )
3433import Development.IDE.Core.FileStore (isWatchSupported ,
@@ -87,7 +86,6 @@ import Ide.Types (IdeCommand (IdeCommand),
8786 PluginId (PluginId ),
8887 ipMap )
8988import qualified Language.LSP.Server as LSP
90- import qualified Language.LSP.Types as LSP
9189import Options.Applicative hiding (action )
9290import qualified System.Directory.Extra as IO
9391import 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