File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -963,7 +963,7 @@ isSubspanOfA :: GHC.LocatedAn la a -> GHC.LocatedAn lb b -> Bool
963
963
isSubspanOfA a b = SrcLoc. isSubspanOf (GHC. getLocA a) (GHC. getLocA b)
964
964
#else
965
965
isSubspanOfA :: Located a -> Located b -> Bool
966
- isSubspanOfA = isSubspanOf
966
+ isSubspanOfA a b = SrcLoc. isSubspanOf ( GHC. getLoc a) ( GHC. getLoc b)
967
967
#endif
968
968
969
969
#if MIN_VERSION_ghc(9,2,0)
@@ -981,6 +981,7 @@ locA = id
981
981
#if MIN_VERSION_ghc(9,2,0)
982
982
getLocA = GHC. getLocA
983
983
#else
984
+ getLocA :: HasSrcSpan a => a -> SrcSpan
984
985
getLocA = GHC. getLoc
985
986
#endif
986
987
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ annotate :: (ASTElement l ast, Outputable l)
510
510
#if MIN_VERSION_ghc(9,2,0)
511
511
=> DynFlags -> Bool -> LocatedAn l ast -> TransformT (Either String ) (LocatedAn l ast)
512
512
#else
513
- => DynFlags -> Bool -> LocatedAn l ast -> TransformT (Either String ) (_ , LocatedAn l ast)
513
+ => DynFlags -> Bool -> LocatedAn l ast -> TransformT (Either String ) (Anns , LocatedAn l ast)
514
514
#endif
515
515
annotate dflags needs_space ast = do
516
516
uniq <- show <$> uniqueSrcSpanT
@@ -601,5 +601,5 @@ eqSrcSpanA :: SrcAnn la -> SrcAnn b -> Bool
601
601
eqSrcSpanA l r = leftmost_smallest (locA l) (locA r) == EQ
602
602
#else
603
603
eqSrcSpanA :: SrcSpan -> SrcSpan -> Bool
604
- eqSrcSpan l r = leftmost_smallest l r == EQ
604
+ eqSrcSpanA l r = leftmost_smallest l r == EQ
605
605
#endif
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ appendConstraint constraintT = go
173
173
]
174
174
return $ L lTop $ HsQualTy noExtField context (L l other)
175
175
176
- liftParseAST :: ASTElement ast => DynFlags -> String -> TransformT (Either String ) (Located ast )
176
+ liftParseAST :: forall ast l . ASTElement l ast => DynFlags -> String -> TransformT (Either String ) (Located ast )
177
177
liftParseAST df s = case parseAST df " " s of
178
178
Right (anns, x) -> modifyAnnsT (anns <> ) $> x
179
179
Left _ -> lift $ Left $ " No parse: " <> s
You can’t perform that action at this time.
0 commit comments