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 a8cb453
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

module Ide.Plugin.Class.CodeAction where

import Control.Applicative (liftA2)
import Control.Lens hiding (List, use)
import Control.Monad.Extra
import Control.Monad.IO.Class (liftIO)
Expand Down

0 comments on commit a8cb453

Please sign in to comment.