Skip to content

Commit

Permalink
Fix compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
July541 committed Jun 20, 2022
1 parent 375db1c commit 6b2d069
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ghcide/src/Development/IDE/GHC/Compat/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,6 @@ pattern L l a <- GHC.L (getLoc -> l) a
type HasSrcSpan = SrcLoc.HasSrcSpan
getLoc :: SrcLoc.HasSrcSpan a => a -> SrcLoc.SrcSpan
getLoc = SrcLoc.getLoc
instance HasSrcSpan SrcLoc.SrcSpan where
Development.IDE.GHC.Compat.Core.getLoc = id

#else

Expand All @@ -852,8 +850,6 @@ instance HasSrcSpan Name where
getLoc = nameSrcSpan
instance HasSrcSpan (SrcLoc.GenLocated SrcSpan a) where
getLoc = SrcLoc.getLoc
instance HasSrcSpan SrcSpan where
getLoc = id

#endif

Expand Down

0 comments on commit 6b2d069

Please sign in to comment.