@@ -121,7 +121,9 @@ module Development.IDE.GHC.Compat.Core (
121121 TyCoRep. CoercionTy
122122 ),
123123 pattern FunTy ,
124+ #if !MIN_VERSION_ghc(9,2,0)
124125 Development.IDE.GHC.Compat.Core. splitForAllTyCoVars ,
126+ #endif
125127 Development.IDE.GHC.Compat.Core. mkVisFunTys ,
126128 Development.IDE.GHC.Compat.Core. mkInfForAllTys ,
127129 -- * Specs
@@ -234,7 +236,9 @@ module Development.IDE.GHC.Compat.Core (
234236 Unlinked (.. ),
235237 Linkable (.. ),
236238 unload ,
239+ #if !MIN_VERSION_ghc(9,2,0)
237240 initDynLinker ,
241+ #endif
238242 -- * Hooks
239243 Hooks ,
240244 runMetaHook ,
@@ -426,7 +430,7 @@ import GHC.Core.Coercion
426430import GHC.Core.ConLike
427431import GHC.Core.DataCon hiding (dataConExTyCoVars )
428432import qualified GHC.Core.DataCon as DataCon
429- import GHC.Core.FamInstEnv
433+ import GHC.Core.FamInstEnv hiding ( pprFamInst )
430434import GHC.Core.InstEnv
431435import GHC.Types.Unique.FM
432436#if MIN_VERSION_ghc(9,2,0)
@@ -444,6 +448,7 @@ import GHC.Core.Type hiding (mkInfForAllTys, mkVisFunTys)
444448import GHC.Core.Unify
445449import GHC.Core.Utils
446450
451+
447452#if MIN_VERSION_ghc(9,2,0)
448453import GHC.Driver.Env
449454#else
@@ -460,6 +465,9 @@ import GHC.Driver.Pipeline
460465import GHC.Driver.Plugins
461466import GHC.Driver.Session hiding (ExposePackage )
462467import qualified GHC.Driver.Session as DynFlags
468+ #if MIN_VERSION_ghc(9,2,0)
469+ import GHC.Hs (HsParsedModule (.. ))
470+ #endif
463471#if !MIN_VERSION_ghc(9,2,0)
464472import GHC.Hs
465473#endif
@@ -480,6 +488,7 @@ import GHC.Parser.Lexer
480488import GHC.Linker.Loader
481489import GHC.Linker.Types
482490import GHC.Platform.Ways
491+ import GHC.Runtime.Context (InteractiveImport (.. ))
483492#else
484493import GHC.Runtime.Linker
485494#endif
@@ -497,6 +506,9 @@ import GHC.Tc.Utils.Monad hiding (Applicative (..), IORef,
497506import GHC.Tc.Utils.TcType as TcType
498507import qualified GHC.Types.Avail as Avail
499508#if MIN_VERSION_ghc(9,2,0)
509+ import GHC.Types.Fixity (LexicalFixity (.. ))
510+ #endif
511+ #if MIN_VERSION_ghc(9,2,0)
500512import GHC.Types.Meta
501513#endif
502514import GHC.Types.Basic
@@ -510,6 +522,7 @@ import GHC.Types.Name.Set
510522import GHC.Types.SourceFile (HscSource (.. ),
511523 SourceModified (.. ))
512524import GHC.Types.SourceText
525+ import GHC.Types.Target (Target (.. ), TargetId (.. ))
513526import GHC.Types.TyThing
514527import GHC.Types.TyThing.Ppr
515528#else
@@ -532,10 +545,12 @@ import GHC.Unit.Module hiding (ModLocation (..), UnitId,
532545 toUnitId )
533546import qualified GHC.Unit.Module as Module
534547#if MIN_VERSION_ghc(9,2,0)
548+ import GHC.Unit.Module.Graph (mkModuleGraph )
535549import GHC.Unit.Module.Imported
536550import GHC.Unit.Module.ModDetails
537551import 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 (.. ))
539554#endif
540555import GHC.Unit.State (ModuleOrigin (.. ))
541556import GHC.Utils.Error (Severity (.. ))
@@ -658,6 +673,11 @@ import Data.List (isSuffixOf)
658673import System.FilePath
659674#endif
660675
676+
677+ #if MIN_VERSION_ghc(9,2,0)
678+ import Language.Haskell.Syntax.Expr
679+ #endif
680+
661681#if !MIN_VERSION_ghc(9,0,0)
662682type BufSpan = ()
663683type BufPos = ()
@@ -806,11 +826,9 @@ mkInfForAllTys =
806826 mkInvForAllTys
807827#endif
808828
829+ #if !MIN_VERSION_ghc(9,2,0)
809830splitForAllTyCoVars :: Type -> ([TyCoVar ], Type )
810831splitForAllTyCoVars =
811- #if MIN_VERSION_ghc(9,2,0)
812- TcType. splitForAllTyCoVars
813- #else
814832 splitForAllTys
815833#endif
816834
0 commit comments