Skip to content

Commit 0428385

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

File tree

2 files changed

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

2 files changed

+5
-12
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

886882
unrestricted :: a -> Scaled a
887883
unrestricted = id
884+
#endif
888885

889886
mkVisFunTys :: [Scaled Type] -> Type -> Type
890887
mkVisFunTys =
@@ -896,6 +893,9 @@ mkVisFunTys =
896893

897894
mkInfForAllTys :: [TyVar] -> Type -> Type
898895
mkInfForAllTys =
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
957957
type 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
963962
pattern ConPatIn :: SrcLoc.Located (ConLikeP GhcPs) -> HsConPatDetails GhcPs -> Pat GhcPs
964963
pattern ConPatIn con args = ConPat NoExtField con args
965964
#endif
966965

967-
=======
968966
initDynLinker, initObjLinker :: HscEnv -> IO ()
969967
initDynLinker =
970968
#if !MIN_VERSION_ghc(9,0,0)
@@ -1061,4 +1059,3 @@ collectHsBindsBinders x = GHC.collectHsBindsBinders CollNoDictBinders x
10611059
pattern HsLet xlet localBinds expr <- GHC.HsLet xlet (SrcLoc.unLoc -> localBinds) expr
10621060
pattern LetStmt xlet localBinds <- GHC.LetStmt xlet (SrcLoc.unLoc -> localBinds)
10631061
#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)