File tree 2 files changed +4
-12
lines changed
plugins/hls-eval-plugin/src/Ide/Plugin/Eval
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,20 @@ module Ide.Plugin.Eval.CodeLens (
25
25
evalCommand ,
26
26
) where
27
27
28
+ import Data.Aeson (toJSON )
28
29
import Control.Applicative (Alternative ((<|>) ))
29
30
import Control.Arrow (second , (>>>) )
30
31
import qualified Control.Exception as E
31
32
import Control.Monad
32
33
( void ,
33
- when , guard
34
+ when , guard ,
34
35
join
35
36
)
36
37
import Control.Monad.IO.Class (MonadIO (liftIO ))
37
38
import Control.Monad.Trans.Except
38
39
( ExceptT (.. ),
39
40
)
40
- import Data.Aeson
41
- ( FromJSON ,
42
- ToJSON ,
43
- toJSON ,
44
- )
45
41
import Data.Char (isSpace )
46
- import Data.Either (isRight )
47
42
import qualified Data.HashMap.Strict as HashMap
48
43
import Data.List
49
44
(dropWhileEnd ,
@@ -104,13 +99,11 @@ import GHC
104
99
load ,
105
100
runDecls ,
106
101
setContext ,
107
- setInteractiveDynFlags ,
108
102
setLogAction ,
109
103
setSessionDynFlags ,
110
104
setTargets ,
111
105
typeKind ,
112
106
)
113
- import GHC.Generics (Generic )
114
107
import qualified GHC.LanguageExtensions.Type as LangExt
115
108
import GhcPlugins
116
109
( DynFlags (.. ),
@@ -142,8 +135,7 @@ import Ide.Plugin.Eval.Code
142
135
testRanges ,
143
136
)
144
137
import Ide.Plugin.Eval.GHC
145
- ( addExtension ,
146
- addImport ,
138
+ ( addImport ,
147
139
addPackages ,
148
140
hasPackage ,
149
141
isExpr ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import Data.String (IsString (..))
38
38
import Development.IDE (Range )
39
39
import GHC.Generics (Generic )
40
40
import qualified Text.Megaparsec as P
41
- import Language.Haskell. LSP.Types (TextDocumentIdentifier )
41
+ import Language.LSP.Types (TextDocumentIdentifier )
42
42
43
43
-- | A thing with a location attached.
44
44
data Located l a = Located { location :: l , located :: a }
You can’t perform that action at this time.
0 commit comments