@@ -121,7 +121,9 @@ module Development.IDE.GHC.Compat.Core (
121
121
TyCoRep. CoercionTy
122
122
),
123
123
pattern FunTy ,
124
+ #if !MIN_VERSION_ghc(9,2,0)
124
125
Development.IDE.GHC.Compat.Core. splitForAllTyCoVars ,
126
+ #endif
125
127
Development.IDE.GHC.Compat.Core. mkVisFunTys ,
126
128
Development.IDE.GHC.Compat.Core. mkInfForAllTys ,
127
129
-- * Specs
@@ -234,7 +236,9 @@ module Development.IDE.GHC.Compat.Core (
234
236
Unlinked (.. ),
235
237
Linkable (.. ),
236
238
unload ,
239
+ #if !MIN_VERSION_ghc(9,2,0)
237
240
initDynLinker ,
241
+ #endif
238
242
-- * Hooks
239
243
Hooks ,
240
244
runMetaHook ,
@@ -426,7 +430,7 @@ import GHC.Core.Coercion
426
430
import GHC.Core.ConLike
427
431
import GHC.Core.DataCon hiding (dataConExTyCoVars )
428
432
import qualified GHC.Core.DataCon as DataCon
429
- import GHC.Core.FamInstEnv
433
+ import GHC.Core.FamInstEnv hiding ( pprFamInst )
430
434
import GHC.Core.InstEnv
431
435
import GHC.Types.Unique.FM
432
436
#if MIN_VERSION_ghc(9,2,0)
@@ -444,6 +448,7 @@ import GHC.Core.Type hiding (mkInfForAllTys, mkVisFunTys)
444
448
import GHC.Core.Unify
445
449
import GHC.Core.Utils
446
450
451
+
447
452
#if MIN_VERSION_ghc(9,2,0)
448
453
import GHC.Driver.Env
449
454
#else
@@ -460,6 +465,9 @@ import GHC.Driver.Pipeline
460
465
import GHC.Driver.Plugins
461
466
import GHC.Driver.Session hiding (ExposePackage )
462
467
import qualified GHC.Driver.Session as DynFlags
468
+ #if MIN_VERSION_ghc(9,2,0)
469
+ import GHC.Hs (HsParsedModule (.. ))
470
+ #endif
463
471
#if !MIN_VERSION_ghc(9,2,0)
464
472
import GHC.Hs
465
473
#endif
@@ -480,6 +488,7 @@ import GHC.Parser.Lexer
480
488
import GHC.Linker.Loader
481
489
import GHC.Linker.Types
482
490
import GHC.Platform.Ways
491
+ import GHC.Runtime.Context (InteractiveImport (.. ))
483
492
#else
484
493
import GHC.Runtime.Linker
485
494
#endif
@@ -497,6 +506,9 @@ import GHC.Tc.Utils.Monad hiding (Applicative (..), IORef,
497
506
import GHC.Tc.Utils.TcType as TcType
498
507
import qualified GHC.Types.Avail as Avail
499
508
#if MIN_VERSION_ghc(9,2,0)
509
+ import GHC.Types.Fixity (LexicalFixity (.. ))
510
+ #endif
511
+ #if MIN_VERSION_ghc(9,2,0)
500
512
import GHC.Types.Meta
501
513
#endif
502
514
import GHC.Types.Basic
@@ -510,6 +522,7 @@ import GHC.Types.Name.Set
510
522
import GHC.Types.SourceFile (HscSource (.. ),
511
523
SourceModified (.. ))
512
524
import GHC.Types.SourceText
525
+ import GHC.Types.Target (Target (.. ), TargetId (.. ))
513
526
import GHC.Types.TyThing
514
527
import GHC.Types.TyThing.Ppr
515
528
#else
@@ -532,10 +545,12 @@ import GHC.Unit.Module hiding (ModLocation (..), UnitId,
532
545
toUnitId )
533
546
import qualified GHC.Unit.Module as Module
534
547
#if MIN_VERSION_ghc(9,2,0)
548
+ import GHC.Unit.Module.Graph (mkModuleGraph )
535
549
import GHC.Unit.Module.Imported
536
550
import GHC.Unit.Module.ModDetails
537
551
import GHC.Unit.Module.ModGuts
538
- import GHC.Unit.Module.ModIface (IfaceExport )
552
+ import GHC.Unit.Module.ModIface (IfaceExport , ModIface (.. ), ModIface_ (.. ))
553
+ import GHC.Unit.Module.ModSummary (ModSummary (.. ))
539
554
#endif
540
555
import GHC.Unit.State (ModuleOrigin (.. ))
541
556
import GHC.Utils.Error (Severity (.. ))
@@ -658,6 +673,11 @@ import Data.List (isSuffixOf)
658
673
import System.FilePath
659
674
#endif
660
675
676
+
677
+ #if MIN_VERSION_ghc(9,2,0)
678
+ import Language.Haskell.Syntax.Expr
679
+ #endif
680
+
661
681
#if !MIN_VERSION_ghc(9,0,0)
662
682
type BufSpan = ()
663
683
type BufPos = ()
@@ -806,11 +826,9 @@ mkInfForAllTys =
806
826
mkInvForAllTys
807
827
#endif
808
828
829
+ #if !MIN_VERSION_ghc(9,2,0)
809
830
splitForAllTyCoVars :: Type -> ([TyCoVar ], Type )
810
831
splitForAllTyCoVars =
811
- #if MIN_VERSION_ghc(9,2,0)
812
- TcType. splitForAllTyCoVars
813
- #else
814
832
splitForAllTys
815
833
#endif
816
834
0 commit comments