Skip to content

Commit ec8e439

Browse files
committed
Fix merge
More fixing the merge No, seriously fix the merge Fix a broken merge
1 parent fa3e916 commit ec8e439

File tree

2 files changed

+7
-11
lines changed
  • ghcide/src/Development/IDE/GHC/Compat
  • plugins/hls-tactics-plugin/src/Wingman

2 files changed

+7
-11
lines changed

ghcide/src/Development/IDE/GHC/Compat/Core.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@ module Development.IDE.GHC.Compat.Core (
131131
),
132132
pattern FunTy,
133133
pattern ConPatIn,
134-
#if !MIN_VERSION_ghc(9,2,0)
135134
Development.IDE.GHC.Compat.Core.splitForAllTyCoVars,
136-
#endif
135+
#if !MIN_VERSION_ghc(9,0,0)
137136
Development.IDE.GHC.Compat.Core.mkVisFunTys,
138137
Development.IDE.GHC.Compat.Core.mkInfForAllTys,
139138
#endif
@@ -385,7 +384,7 @@ module Development.IDE.GHC.Compat.Core (
385384
module GHC.Types.Var,
386385
module GHC.Unit.Module,
387386
module GHC.Utils.Error,
388-
module TcType,
387+
module TcType
389388
#else
390389
module BasicTypes,
391390
module Class,
@@ -885,6 +884,7 @@ scaledThing = id
885884

886885
unrestricted :: a -> Scaled a
887886
unrestricted = id
887+
#endif
888888

889889
mkVisFunTys :: [Scaled Type] -> Type -> Type
890890
mkVisFunTys =
@@ -896,6 +896,9 @@ mkVisFunTys =
896896

897897
mkInfForAllTys :: [TyVar] -> Type -> Type
898898
mkInfForAllTys =
899+
#if MIN_VERSION_ghc(9,0,0)
900+
TcType.mkInfForAllTys
901+
#else
899902
mkInfForAllTys
900903
#endif
901904

@@ -957,14 +960,12 @@ type PlainGhcException = Plain.PlainGhcException
957960
type PlainGhcException = Plain.GhcException
958961
#endif
959962

960-
<<<<<<< HEAD
961963
#if MIN_VERSION_ghc(9,0,0)
962964
-- This is from the old api, but it still simplifies
963965
pattern ConPatIn :: SrcLoc.Located (ConLikeP GhcPs) -> HsConPatDetails GhcPs -> Pat GhcPs
964966
pattern ConPatIn con args = ConPat NoExtField con args
965967
#endif
966968

967-
=======
968969
initDynLinker, initObjLinker :: HscEnv -> IO ()
969970
initDynLinker =
970971
#if !MIN_VERSION_ghc(9,0,0)
@@ -1061,4 +1062,3 @@ collectHsBindsBinders x = GHC.collectHsBindsBinders CollNoDictBinders x
10611062
pattern HsLet xlet localBinds expr <- GHC.HsLet xlet (SrcLoc.unLoc -> localBinds) expr
10621063
pattern LetStmt xlet localBinds <- GHC.LetStmt xlet (SrcLoc.unLoc -> localBinds)
10631064
#endif
1064-
>>>>>>> master

plugins/hls-tactics-plugin/src/Wingman/GHC.hs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,7 @@ pattern SingleLet bind pats val expr <-
196196
HsLet _
197197
(HsValBinds _
198198
(ValBinds _ (bagToList ->
199-
<<<<<<< HEAD
200-
[L _ (FunBind {fun_id = (L _ bind), fun_matches = (MG _ (L _ [L _ (AMatch _ pats val)]) _)})]) _)))
201-
=======
202-
[(L _ (FunBind _ (L _ bind) (MG _ (L _ [L _ (AMatch _ pats val)]) _) _ _))]) _))
203-
>>>>>>> master
199+
[L _ (FunBind {fun_id = (L _ bind), fun_matches = (MG _ (L _ [L _ (AMatch _ pats val)]) _)})]) _))
204200
(L _ expr)
205201

206202

0 commit comments

Comments
 (0)