@@ -28,7 +28,7 @@ import qualified Data.Text as T
2828import Development.IDE.Core.Rules
2929import Development.IDE.Core.Shake
3030import Development.IDE.LSP.Server
31- import Development.IDE.Plugin hiding (pluginCommands , pluginRules )
31+ import Development.IDE.Plugin hiding (pluginRules )
3232import Development.IDE.Types.Diagnostics as D
3333import Development.IDE.Types.Logger
3434import Development.Shake hiding ( Diagnostic , command )
@@ -89,12 +89,12 @@ allLspCmdIds' pid mp = mkPlugin (allLspCmdIds pid) (Just . pluginCommands)
8989-- ---------------------------------------------------------------------
9090
9191rulesPlugins :: [(PluginId , Rules () )] -> Plugin Config
92- rulesPlugins rs = Plugin mempty rules mempty
92+ rulesPlugins rs = Plugin rules mempty
9393 where
9494 rules = mconcat $ map snd rs
9595
9696codeActionPlugins :: [(PluginId , CodeActionProvider )] -> Plugin Config
97- codeActionPlugins cas = Plugin mempty codeActionRules (codeActionHandlers cas)
97+ codeActionPlugins cas = Plugin codeActionRules (codeActionHandlers cas)
9898
9999codeActionRules :: Rules ()
100100codeActionRules = mempty
@@ -152,7 +152,7 @@ data FallbackCodeActionParams =
152152-- -----------------------------------------------------------
153153
154154codeLensPlugins :: [(PluginId , CodeLensProvider )] -> Plugin Config
155- codeLensPlugins cas = Plugin mempty codeLensRules (codeLensHandlers cas)
155+ codeLensPlugins cas = Plugin codeLensRules (codeLensHandlers cas)
156156
157157codeLensRules :: Rules ()
158158codeLensRules = mempty
@@ -192,7 +192,7 @@ makeCodeLens cas _lf ideState params = do
192192-- -----------------------------------------------------------
193193
194194executeCommandPlugins :: [(PluginId , [PluginCommand ])] -> Plugin Config
195- executeCommandPlugins ecs = Plugin mempty mempty (executeCommandHandlers ecs)
195+ executeCommandPlugins ecs = Plugin mempty (executeCommandHandlers ecs)
196196
197197executeCommandHandlers :: [(PluginId , [PluginCommand ])] -> PartialHandlers Config
198198executeCommandHandlers ecs = PartialHandlers $ \ WithMessage {.. } x -> return x{
@@ -370,7 +370,7 @@ allLspCmdIds pid commands = concat $ map go commands
370370-- ---------------------------------------------------------------------
371371
372372hoverPlugins :: [(PluginId , HoverProvider )] -> Plugin Config
373- hoverPlugins hs = Plugin mempty hoverRules (hoverHandlers hs)
373+ hoverPlugins hs = Plugin hoverRules (hoverHandlers hs)
374374
375375hoverRules :: Rules ()
376376hoverRules = mempty
@@ -403,8 +403,7 @@ makeHover hps _lf ideState params
403403
404404formatterPlugins :: [(PluginId , FormattingProvider IO )] -> Plugin Config
405405formatterPlugins providers
406- = Plugin mempty
407- formatterRules
406+ = Plugin formatterRules
408407 (formatterHandlers (Map. fromList ((" none" ,noneProvider): providers)))
409408
410409formatterRules :: Rules ()
0 commit comments