File tree 1 file changed +12
-0
lines changed
ghcide/src/Development/IDE
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
{-# OPTIONS_GHC -Wno-orphans #-}
2
+ {-# LANGUAGE CPP #-}
2
3
module Development.IDE.Main
3
4
(Arguments (.. )
4
5
,Command (.. )
@@ -85,6 +86,9 @@ import Ide.Types (IdeCommand (IdeCommand),
85
86
PluginId (PluginId ),
86
87
ipMap )
87
88
import qualified Language.LSP.Server as LSP
89
+ #if (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(9,0,1,0)))
90
+ import qualified Language.LSP.Types as LSP
91
+ #endif
88
92
import Options.Applicative hiding (action )
89
93
import qualified System.Directory.Extra as IO
90
94
import System.Exit (ExitCode (ExitFailure ),
@@ -256,6 +260,14 @@ defaultMain Arguments{..} = do
256
260
, optRunSubset = runSubset
257
261
}
258
262
caps = LSP. resClientCapabilities env
263
+ -- FIXME: Remove this after GHC 9 gets fully supported
264
+ #if (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(9,0,1,0)))
265
+ LSP. runLspT env $
266
+ LSP. sendNotification LSP. SWindowShowMessage $
267
+ LSP. ShowMessageParams LSP. MtWarning $
268
+ " Currently, HLS supports GHC 9 only partially. "
269
+ <> " See [issue #297](https://github.com/haskell/haskell-language-server/issues/297) for more detail."
270
+ #endif
259
271
initialise
260
272
argsDefaultHlsConfig
261
273
rules
You can’t perform that action at this time.
0 commit comments