@@ -67,10 +67,8 @@ module Development.IDE.GHC.Compat.Core (
67
67
-- slightly unsafe
68
68
setUnsafeGlobalDynFlags ,
69
69
-- * Linear Haskell
70
- #if !MIN_VERSION_ghc(9,0,0)
71
70
Scaled ,
72
71
unrestricted ,
73
- #endif
74
72
scaledThing ,
75
73
-- * Interface Files
76
74
IfaceExport ,
@@ -136,7 +134,6 @@ module Development.IDE.GHC.Compat.Core (
136
134
#endif
137
135
Development.IDE.GHC.Compat.Core. mkVisFunTys ,
138
136
Development.IDE.GHC.Compat.Core. mkInfForAllTys ,
139
- #endif
140
137
-- * Specs
141
138
ImpDeclSpec (.. ),
142
139
ImportSpec (.. ),
@@ -385,7 +382,6 @@ module Development.IDE.GHC.Compat.Core (
385
382
module GHC.Types.Var ,
386
383
module GHC.Unit.Module ,
387
384
module GHC.Utils.Error ,
388
- module TcType ,
389
385
#else
390
386
module BasicTypes ,
391
387
module Class ,
@@ -885,6 +881,7 @@ scaledThing = id
885
881
886
882
unrestricted :: a -> Scaled a
887
883
unrestricted = id
884
+ #endif
888
885
889
886
mkVisFunTys :: [Scaled Type ] -> Type -> Type
890
887
mkVisFunTys =
@@ -896,6 +893,9 @@ mkVisFunTys =
896
893
897
894
mkInfForAllTys :: [TyVar ] -> Type -> Type
898
895
mkInfForAllTys =
896
+ #if MIN_VERSION_ghc(9,0,0)
897
+ TcType. mkInfForAllTys
898
+ #else
899
899
mkInfForAllTys
900
900
#endif
901
901
@@ -957,14 +957,12 @@ type PlainGhcException = Plain.PlainGhcException
957
957
type PlainGhcException = Plain. GhcException
958
958
#endif
959
959
960
- <<<<<<< HEAD
961
960
#if MIN_VERSION_ghc(9,0,0)
962
961
-- This is from the old api, but it still simplifies
963
962
pattern ConPatIn :: SrcLoc. Located (ConLikeP GhcPs ) -> HsConPatDetails GhcPs -> Pat GhcPs
964
963
pattern ConPatIn con args = ConPat NoExtField con args
965
964
#endif
966
965
967
- =======
968
966
initDynLinker , initObjLinker :: HscEnv -> IO ()
969
967
initDynLinker =
970
968
#if !MIN_VERSION_ghc(9,0,0)
@@ -1061,4 +1059,3 @@ collectHsBindsBinders x = GHC.collectHsBindsBinders CollNoDictBinders x
1061
1059
pattern HsLet xlet localBinds expr <- GHC. HsLet xlet (SrcLoc. unLoc -> localBinds) expr
1062
1060
pattern LetStmt xlet localBinds <- GHC. LetStmt xlet (SrcLoc. unLoc -> localBinds)
1063
1061
#endif
1064
- >>>>>>> master
0 commit comments