Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit d3bce65

Browse files
committed
Remove unused Liquid haskell commands
1 parent eac0709 commit d3bce65

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/Haskell/Ide/Engine/Plugin/Liquid.hs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ liquidDescriptor plId = PluginDescriptor
3535
{ pluginId = plId
3636
, pluginName = "Liquid Haskell"
3737
, pluginDesc = "Integration with Liquid Haskell"
38-
, pluginCommands =
39-
[ PluginCommand "sayHello" "say hello" sayHelloCmd
40-
, PluginCommand "sayHelloTo" "say hello to the passed in param" sayHelloToCmd
41-
]
38+
, pluginCommands = []
4239
, pluginCodeActionProvider = Nothing
4340
, pluginDiagnosticProvider = Just (DiagnosticProvider
4441
(S.singleton DiagnosticOnSave)
@@ -50,24 +47,6 @@ liquidDescriptor plId = PluginDescriptor
5047

5148
-- ---------------------------------------------------------------------
5249

53-
sayHelloCmd :: CommandFunc () T.Text
54-
sayHelloCmd = CmdSync $ \_ -> return (IdeResultOk sayHello)
55-
56-
sayHelloToCmd :: CommandFunc T.Text T.Text
57-
sayHelloToCmd = CmdSync $ \n -> do
58-
r <- liftIO $ sayHelloTo n
59-
return $ IdeResultOk r
60-
61-
-- ---------------------------------------------------------------------
62-
63-
sayHello :: T.Text
64-
sayHello = "hello from ExamplePlugin2"
65-
66-
sayHelloTo :: T.Text -> IO T.Text
67-
sayHelloTo n = return $ "hello " <> n <> " from ExamplePlugin2"
68-
69-
-- ---------------------------------------------------------------------
70-
7150
data LiquidJson
7251
= LJ
7352
{ status :: T.Text

0 commit comments

Comments
 (0)