@@ -67,10 +67,8 @@ module Development.IDE.GHC.Compat.Core (
6767 -- slightly unsafe
6868 setUnsafeGlobalDynFlags ,
6969 -- * Linear Haskell
70- #if !MIN_VERSION_ghc(9,0,0)
7170 Scaled ,
7271 unrestricted ,
73- #endif
7472 scaledThing ,
7573 -- * Interface Files
7674 IfaceExport ,
@@ -136,7 +134,6 @@ module Development.IDE.GHC.Compat.Core (
136134#endif
137135 Development.IDE.GHC.Compat.Core. mkVisFunTys ,
138136 Development.IDE.GHC.Compat.Core. mkInfForAllTys ,
139- #endif
140137 -- * Specs
141138 ImpDeclSpec (.. ),
142139 ImportSpec (.. ),
@@ -385,7 +382,6 @@ module Development.IDE.GHC.Compat.Core (
385382 module GHC.Types.Var ,
386383 module GHC.Unit.Module ,
387384 module GHC.Utils.Error ,
388- module TcType ,
389385#else
390386 module BasicTypes ,
391387 module Class ,
@@ -885,6 +881,7 @@ scaledThing = id
885881
886882unrestricted :: a -> Scaled a
887883unrestricted = id
884+ #endif
888885
889886mkVisFunTys :: [Scaled Type ] -> Type -> Type
890887mkVisFunTys =
@@ -896,6 +893,9 @@ mkVisFunTys =
896893
897894mkInfForAllTys :: [TyVar ] -> Type -> Type
898895mkInfForAllTys =
896+ #if MIN_VERSION_ghc(9,0,0)
897+ TcType. mkInfForAllTys
898+ #else
899899 mkInfForAllTys
900900#endif
901901
@@ -957,14 +957,12 @@ type PlainGhcException = Plain.PlainGhcException
957957type PlainGhcException = Plain. GhcException
958958#endif
959959
960- <<<<<<< HEAD
961960#if MIN_VERSION_ghc(9,0,0)
962961-- This is from the old api, but it still simplifies
963962pattern ConPatIn :: SrcLoc. Located (ConLikeP GhcPs ) -> HsConPatDetails GhcPs -> Pat GhcPs
964963pattern ConPatIn con args = ConPat NoExtField con args
965964#endif
966965
967- =======
968966initDynLinker , initObjLinker :: HscEnv -> IO ()
969967initDynLinker =
970968#if !MIN_VERSION_ghc(9,0,0)
@@ -1061,4 +1059,3 @@ collectHsBindsBinders x = GHC.collectHsBindsBinders CollNoDictBinders x
10611059pattern HsLet xlet localBinds expr <- GHC. HsLet xlet (SrcLoc. unLoc -> localBinds) expr
10621060pattern LetStmt xlet localBinds <- GHC. LetStmt xlet (SrcLoc. unLoc -> localBinds)
10631061#endif
1064- >>>>>>> master
0 commit comments