File tree Expand file tree Collapse file tree 7 files changed +34
-4
lines changed
plugins/hls-explicit-imports-plugin Expand file tree Collapse file tree 7 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ packages:
5
5
./hls-plugin-api
6
6
./plugins/tactics
7
7
./plugins/hls-hlint-plugin
8
+ ./plugins/hls-explicit-imports-plugin
8
9
9
10
source-repository-package
10
11
type : git
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import Ide.Plugin.Example2 as Example2
18
18
import Ide.Plugin.Floskell as Floskell
19
19
import Ide.Plugin.Fourmolu as Fourmolu
20
20
import Ide.Plugin.GhcIde as GhcIde
21
- import Ide.Plugin.ImportLens as ImportLens
21
+ import Ide.Plugin.ExplicitImports as ExplicitImports
22
22
import Ide.Plugin.Ormolu as Ormolu
23
23
import Ide.Plugin.Retrie as Retrie
24
24
import Ide.Plugin.StylishHaskell as StylishHaskell
@@ -60,7 +60,7 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
60
60
, Brittany. descriptor " brittany"
61
61
#endif
62
62
, Eval. descriptor " eval"
63
- , ImportLens . descriptor " importLens "
63
+ , ExplicitImports . descriptor " explicitImports "
64
64
, ModuleName. descriptor " moduleName"
65
65
, Hlint. descriptor " hlint"
66
66
]
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ executable haskell-language-server
88
88
Ide.Plugin.Example2
89
89
Ide.Plugin.Floskell
90
90
Ide.Plugin.Fourmolu
91
- Ide.Plugin.ImportLens
92
91
Ide.Plugin.ModuleName
93
92
Ide.Plugin.Ormolu
94
93
Ide.Plugin.Pragmas
@@ -123,6 +122,7 @@ executable haskell-language-server
123
122
, hls-hlint-plugin
124
123
, hls-plugin-api
125
124
, hls-tactics-plugin
125
+ , hls-explicit-imports-plugin
126
126
, lens
127
127
, ormolu ^>= 0.1.2
128
128
, regex-tdfa
Original file line number Diff line number Diff line change 20
20
hls-plugin-api = ../hls-plugin-api ;
21
21
hls-tactics-plugin = ../plugins/tactics ;
22
22
hls-hlint-plugin = ../plugins/hls-hlint-plugin ;
23
+ hls-explicit-imports-plugin = ../plugins/hls-explicit-imports-plugin ;
23
24
} ) ;
24
25
in
25
26
{
Original file line number Diff line number Diff line change
1
+ cabal-version : 2.2
2
+ name : hls-explicit-imports-plugin
3
+ version : 0.1.0.0
4
+ synopsis : Explicit imports plugin for Haskell Language Server
5
+ license : Apache-2.0
6
+ license-file : LICENSE
7
+ author : Pepe Iborra
8
+ maintainer : pepeiborra@gmail.com
9
+ category : Development
10
+ build-type : Simple
11
+
12
+ library
13
+ exposed-modules : Ide.Plugin.ExplicitImports
14
+ hs-source-dirs : src
15
+ build-depends : aeson
16
+ , base
17
+ , containers
18
+ , deepseq
19
+ , haskell-lsp-types
20
+ , hls-plugin-api
21
+ , ghc
22
+ , ghcide
23
+ , shake
24
+ , text
25
+ , unordered-containers
26
+
27
+ default-language : Haskell2010
Original file line number Diff line number Diff line change 13
13
14
14
#include "ghc-api-version.h"
15
15
16
- module Ide.Plugin.ImportLens (descriptor ) where
16
+ module Ide.Plugin.ExplicitImports (descriptor ) where
17
17
18
18
import Control.DeepSeq
19
19
import Control.Monad.IO.Class
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ let defaultCompiler = "ghc" + lib.replaceStrings ["."] [""] haskellPackages.ghc.
30
30
p . hls-plugin-api
31
31
p . hls-tactics-plugin
32
32
p . hls-hlint-plugin
33
+ p . hls-explicit-imports-plugin
33
34
] ;
34
35
35
36
isSupported = compiler == "default" || compiler == defaultCompiler ;
You can’t perform that action at this time.
0 commit comments