File tree 4 files changed +10
-8
lines changed
plugins/hls-rename-plugin
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ library
66
66
hiedb == 0.4.1. *,
67
67
lsp-types ^>= 1.4.0.1 ,
68
68
lsp ^>= 1.4.0.0 ,
69
+ mod,
69
70
monoid-subclasses,
70
71
mtl,
71
72
network-uri,
Original file line number Diff line number Diff line change @@ -33,18 +33,22 @@ import Retrie.ExactPrint (Annotated)
33
33
34
34
import Development.IDE.GHC.Compat
35
35
import Development.IDE.GHC.Util
36
+ import Development.IDE.Types.Location
36
37
37
38
import Control.DeepSeq
38
39
import Data.Aeson
39
40
import Data.Bifunctor (Bifunctor (.. ))
40
41
import Data.Hashable
42
+ import Data.Mod.Word
41
43
import Data.String (IsString (fromString ))
42
44
#if MIN_VERSION_ghc(9,0,0)
43
45
import GHC.ByteCode.Types
44
46
#else
45
47
import ByteCodeTypes
46
48
#endif
47
49
50
+ import Language.LSP.Types (UInt )
51
+
48
52
-- Orphan instances for types from the GHC API.
49
53
instance Show CoreModule where show = prettyPrint
50
54
instance NFData CoreModule where rnf = rwhnf
@@ -139,6 +143,11 @@ instance Show ModuleName where
139
143
instance Hashable ModuleName where
140
144
hashWithSalt salt = hashWithSalt salt . show
141
145
146
+ instance Hashable Location
147
+ instance Hashable Range
148
+ instance Hashable Position
149
+ instance Hashable UInt
150
+ instance Hashable (Mod a ) where hash n = hash (unMod n)
142
151
143
152
instance NFData a => NFData (IdentifierDetails a ) where
144
153
rnf (IdentifierDetails a b) = rnf a `seq` rnf (length b)
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ library
31
31
, hls-plugin-api ^>= 1.3
32
32
, lsp
33
33
, lsp-types
34
- , mod
35
34
, syb
36
35
, text
37
36
, transformers
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import Data.Hashable
26
26
import Data.List.Extra
27
27
import qualified Data.Map as M
28
28
import Data.Maybe
29
- import Data.Mod.Word
30
29
import qualified Data.Text as T
31
30
import Development.IDE.Core.PositionMapping
32
31
import Development.IDE.Core.RuleTypes
@@ -48,12 +47,6 @@ import Ide.Types
48
47
import Language.LSP.Server
49
48
import Language.LSP.Types
50
49
51
- instance Hashable Location
52
- instance Hashable Range
53
- instance Hashable Position
54
- instance Hashable UInt
55
- instance Hashable (Mod a ) where hash n = hash (unMod n)
56
-
57
50
descriptor :: PluginId -> PluginDescriptor IdeState
58
51
descriptor pluginId = (defaultPluginDescriptor pluginId)
59
52
{ pluginHandlers = mkPluginHandler STextDocumentRename renameProvider
You can’t perform that action at this time.
0 commit comments