This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 14 files changed +1
-29
lines changed
hie-plugin-api/Haskell/Ide/Engine
src/Haskell/Ide/Engine/Plugin Expand file tree Collapse file tree 14 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,6 @@ type FormattingProvider = T.Text -- ^ Text to format
262
262
263
263
data PluginDescriptor =
264
264
PluginDescriptor { pluginId :: PluginId
265
- , pluginName :: T. Text
266
- , pluginDesc :: T. Text
267
265
, pluginCommands :: [PluginCommand ]
268
266
, pluginCodeActionProvider :: Maybe CodeActionProvider
269
267
, pluginDiagnosticProvider :: Maybe DiagnosticProvider
@@ -596,7 +594,7 @@ instance ExceptionMonad m => ExceptionMonad (ReaderT e m) where
596
594
q u (ReaderT b) = ReaderT (u . b)
597
595
598
596
instance MonadTrans GhcT where
599
- lift m = liftGhcT m
597
+ lift = liftGhcT
600
598
601
599
602
600
instance MonadUnliftIO Ghc where
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ type HintTitle = T.Text
41
41
applyRefactDescriptor :: PluginId -> PluginDescriptor
42
42
applyRefactDescriptor plId = PluginDescriptor
43
43
{ pluginId = plId
44
- , pluginName = " ApplyRefact"
45
- , pluginDesc = " apply-refact applies refactorings specified by the refact package. It is currently integrated into hlint to enable the automatic application of suggestions."
46
44
, pluginCommands =
47
45
[ PluginCommand " applyOne" " Apply a single hint" applyOneCmd
48
46
, PluginCommand " applyAll" " Apply all hints to the file" applyAllCmd
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ import Haskell.Ide.Engine.Ghc
15
15
biosDescriptor :: PluginId -> PluginDescriptor
16
16
biosDescriptor plId = PluginDescriptor
17
17
{ pluginId = plId
18
- , pluginName = " bios"
19
- , pluginDesc = " bios"
20
18
, pluginCommands =
21
19
[PluginCommand " check" " check a file for GHC warnings and errors" checkCmd]
22
20
, pluginCodeActionProvider = Nothing
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ import Data.Maybe (maybeToList)
20
20
brittanyDescriptor :: PluginId -> PluginDescriptor
21
21
brittanyDescriptor plId = PluginDescriptor
22
22
{ pluginId = plId
23
- , pluginName = " Brittany"
24
- , pluginDesc = " Brittany is a tool to format source code."
25
23
, pluginCommands = []
26
24
, pluginCodeActionProvider = Nothing
27
25
, pluginDiagnosticProvider = Nothing
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ import qualified Language.Haskell.LSP.Types.Lens as J
22
22
example2Descriptor :: PluginId -> PluginDescriptor
23
23
example2Descriptor plId = PluginDescriptor
24
24
{ pluginId = plId
25
- , pluginName = " Hello World"
26
- , pluginDesc = " An example of writing an HIE plugin"
27
25
, pluginCommands =
28
26
[ PluginCommand " sayHello" " say hello" sayHelloCmd
29
27
, PluginCommand " sayHelloTo " " say hello to the passed in param" sayHelloToCmd
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ import Haskell.Ide.Engine.PluginUtils
17
17
floskellDescriptor :: PluginId -> PluginDescriptor
18
18
floskellDescriptor plId = PluginDescriptor
19
19
{ pluginId = plId
20
- , pluginName = " Floskell"
21
- , pluginDesc = " A flexible Haskell source code pretty printer."
22
20
, pluginCommands = []
23
21
, pluginCodeActionProvider = Nothing
24
22
, pluginDiagnosticProvider = Nothing
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ import PprTyThing
43
43
genericDescriptor :: PluginId -> PluginDescriptor
44
44
genericDescriptor plId = PluginDescriptor
45
45
{ pluginId = plId
46
- , pluginName = " generic"
47
- , pluginDesc = " generic actions"
48
46
, pluginCommands = [PluginCommand " type" " Get the type of the expression under (LINE,COL)" typeCmd]
49
47
, pluginCodeActionProvider = Just codeActionProvider
50
48
, pluginDiagnosticProvider = Nothing
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ import Documentation.Haddock.Types
34
34
haddockDescriptor :: PluginId -> PluginDescriptor
35
35
haddockDescriptor plId = PluginDescriptor
36
36
{ pluginId = plId
37
- , pluginName = " Haddock"
38
- , pluginDesc = " Fishy documentation"
39
37
, pluginCommands = []
40
38
, pluginCodeActionProvider = Nothing
41
39
, pluginDiagnosticProvider = Nothing
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ import qualified Safe
28
28
hfaAlignDescriptor :: PluginId -> PluginDescriptor
29
29
hfaAlignDescriptor plId = PluginDescriptor
30
30
{ pluginId = plId
31
- , pluginName = " Align Equals"
32
- , pluginDesc = " An example of writing an HIE plugin\n based on http://www.haskellforall.com/2018/10/detailed-walkthrough-for-beginner.html"
33
31
, pluginCommands =
34
32
[ PluginCommand " align" " Align = in active range" alignCmd
35
33
]
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ import qualified Safe as S
31
31
hsimportDescriptor :: PluginId -> PluginDescriptor
32
32
hsimportDescriptor plId = PluginDescriptor
33
33
{ pluginId = plId
34
- , pluginName = " HsImport"
35
- , pluginDesc = " A tool for extending the import list of a Haskell source file."
36
34
, pluginCommands = [PluginCommand " import" " Import a module" importModule]
37
35
, pluginCodeActionProvider = Just codeActionProvider
38
36
, pluginDiagnosticProvider = Nothing
Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ import Text.Parsec.Text
33
33
liquidDescriptor :: PluginId -> PluginDescriptor
34
34
liquidDescriptor plId = PluginDescriptor
35
35
{ pluginId = plId
36
- , pluginName = " Liquid Haskell"
37
- , pluginDesc = " Integration with Liquid Haskell"
38
36
, pluginCommands = []
39
37
, pluginCodeActionProvider = Nothing
40
38
, pluginDiagnosticProvider = Just (DiagnosticProvider
Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ import qualified Data.Yaml as Y
53
53
packageDescriptor :: T. Text -> PluginDescriptor
54
54
packageDescriptor plId = PluginDescriptor
55
55
{ pluginId = plId
56
- , pluginName = " package"
57
- , pluginDesc = " Tools for editing .cabal and package.yaml files."
58
56
, pluginCommands = [PluginCommand " add" " Add a packge" addCmd]
59
57
, pluginCodeActionProvider = Just codeActionProvider
60
58
, pluginDiagnosticProvider = Nothing
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ import qualified Language.Haskell.LSP.Types.Lens as J
18
18
pragmasDescriptor :: PluginId -> PluginDescriptor
19
19
pragmasDescriptor plId = PluginDescriptor
20
20
{ pluginId = plId
21
- , pluginName = " Add Missing Pragmas"
22
- , pluginDesc = " Provide code actions to add missing pragmas when GHC suggests this"
23
21
, pluginCommands =
24
22
[ PluginCommand " addPragma" " add the given pragma" addPragmaCmd
25
23
]
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ testPlugins = pluginDescToIdePlugins [testDescriptor "test"]
35
35
testDescriptor :: PluginId -> PluginDescriptor
36
36
testDescriptor plId = PluginDescriptor
37
37
{ pluginId = plId
38
- , pluginName = " testDescriptor"
39
- , pluginDesc = " PluginDescriptor for testing Dispatcher"
40
38
, pluginCommands = [
41
39
PluginCommand " cmd1" " description" cmd1
42
40
, PluginCommand " cmd2" " description" cmd2
You can’t perform that action at this time.
0 commit comments