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

Commit

Permalink
Remove unused Liquid haskell commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel97 committed Dec 21, 2019
1 parent eac0709 commit d3bce65
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/Haskell/Ide/Engine/Plugin/Liquid.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ liquidDescriptor plId = PluginDescriptor
{ pluginId = plId
, pluginName = "Liquid Haskell"
, pluginDesc = "Integration with Liquid Haskell"
, pluginCommands =
[ PluginCommand "sayHello" "say hello" sayHelloCmd
, PluginCommand "sayHelloTo" "say hello to the passed in param" sayHelloToCmd
]
, pluginCommands = []
, pluginCodeActionProvider = Nothing
, pluginDiagnosticProvider = Just (DiagnosticProvider
(S.singleton DiagnosticOnSave)
Expand All @@ -50,24 +47,6 @@ liquidDescriptor plId = PluginDescriptor

-- ---------------------------------------------------------------------

sayHelloCmd :: CommandFunc () T.Text
sayHelloCmd = CmdSync $ \_ -> return (IdeResultOk sayHello)

sayHelloToCmd :: CommandFunc T.Text T.Text
sayHelloToCmd = CmdSync $ \n -> do
r <- liftIO $ sayHelloTo n
return $ IdeResultOk r

-- ---------------------------------------------------------------------

sayHello :: T.Text
sayHello = "hello from ExamplePlugin2"

sayHelloTo :: T.Text -> IO T.Text
sayHelloTo n = return $ "hello " <> n <> " from ExamplePlugin2"

-- ---------------------------------------------------------------------

data LiquidJson
= LJ
{ status :: T.Text
Expand Down

0 comments on commit d3bce65

Please sign in to comment.