File tree 2 files changed +3
-10
lines changed
ghcide/src/Development/IDE
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 6
6
module Development.IDE.GHC.Util (
7
7
modifyDynFlags ,
8
8
evalGhcEnv ,
9
- isOverGhc9 ,
10
9
-- * GHC wrappers
11
10
prettyPrint ,
12
11
unsafePrintSDoc ,
@@ -281,10 +280,3 @@ ioe_dupHandlesNotCompatible :: Handle -> IO a
281
280
ioe_dupHandlesNotCompatible h =
282
281
ioException (IOError (Just h) IllegalOperation " hDuplicateTo"
283
282
" handles are incompatible" Nothing Nothing )
284
-
285
- isOverGhc9 :: Bool
286
- #if MIN_VERSION_ghc(9,0,1)
287
- isOverGhc9 = True
288
- #else
289
- isOverGhc9 = False
290
- #endif
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ import Data.Text.Lazy.Encoding (decodeUtf8)
27
27
import qualified Data.Text.Lazy.IO as LT
28
28
import Development.IDE (Action , Rules ,
29
29
hDuplicateTo' ,
30
- isOverGhc9 )
30
+ GhcVersion (.. ),
31
+ ghcVersion )
31
32
import Development.IDE.Core.Debouncer (Debouncer ,
32
33
newAsyncDebouncer )
33
34
import Development.IDE.Core.FileStore (isWatchSupported ,
@@ -259,7 +260,7 @@ defaultMain Arguments{..} = do
259
260
}
260
261
caps = LSP. resClientCapabilities env
261
262
-- FIXME: Remove this after GHC 9 gets fully supported
262
- when isOverGhc9 $
263
+ when (ghcVersion == GHC90 ) $
263
264
LSP. runLspT env $
264
265
LSP. sendNotification LSP. SWindowShowMessage $
265
266
LSP. ShowMessageParams LSP. MtWarning $
You can’t perform that action at this time.
0 commit comments