Skip to content

Commit a8cb453

Browse files
committed
Fix compatibility
1 parent 375db1c commit a8cb453

File tree

2 files changed

+1
-4
lines changed
  • ghcide/src/Development/IDE/GHC/Compat
  • plugins/hls-class-plugin/src/Ide/Plugin/Class

2 files changed

+1
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,6 @@ pattern L l a <- GHC.L (getLoc -> l) a
841841
type HasSrcSpan = SrcLoc.HasSrcSpan
842842
getLoc :: SrcLoc.HasSrcSpan a => a -> SrcLoc.SrcSpan
843843
getLoc = SrcLoc.getLoc
844-
instance HasSrcSpan SrcLoc.SrcSpan where
845-
Development.IDE.GHC.Compat.Core.getLoc = id
846844

847845
#else
848846

@@ -852,8 +850,6 @@ instance HasSrcSpan Name where
852850
getLoc = nameSrcSpan
853851
instance HasSrcSpan (SrcLoc.GenLocated SrcSpan a) where
854852
getLoc = SrcLoc.getLoc
855-
instance HasSrcSpan SrcSpan where
856-
getLoc = id
857853

858854
#endif
859855

plugins/hls-class-plugin/src/Ide/Plugin/Class/CodeAction.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
module Ide.Plugin.Class.CodeAction where
77

8+
import Control.Applicative (liftA2)
89
import Control.Lens hiding (List, use)
910
import Control.Monad.Extra
1011
import Control.Monad.IO.Class (liftIO)

0 commit comments

Comments
 (0)