File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 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 (.. )
@@ -76,6 +77,9 @@ import Ide.PluginUtils (allLspCmdIds',
76
77
pluginDescToIdePlugins )
77
78
import Ide.Types (IdePlugins )
78
79
import qualified Language.LSP.Server as LSP
80
+ #if (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(9,0,1,0)))
81
+ import qualified Language.LSP.Types as LSP
82
+ #endif
79
83
import Options.Applicative hiding (action )
80
84
import qualified System.Directory.Extra as IO
81
85
import System.Exit (ExitCode (ExitFailure ),
@@ -229,6 +233,14 @@ defaultMain Arguments{..} = do
229
233
, optRunSubset = runSubset
230
234
}
231
235
caps = LSP. resClientCapabilities env
236
+ -- FIXME: Remove this after GHC 9 gets fully supported
237
+ #if (defined(MIN_VERSION_GLASGOW_HASKELL) && (MIN_VERSION_GLASGOW_HASKELL(9,0,1,0)))
238
+ LSP. runLspT env $
239
+ LSP. sendNotification LSP. SWindowShowMessage $
240
+ LSP. ShowMessageParams LSP. MtWarning $
241
+ " Currently, HLS supports GHC 9 only partially. "
242
+ <> " See [issue #297](https://github.com/haskell/haskell-language-server/issues/297) for more detail."
243
+ #endif
232
244
initialise
233
245
argsDefaultHlsConfig
234
246
rules
You can’t perform that action at this time.
0 commit comments