X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=example%2FMain.hs;h=1e2e3baf3356b36f6eb09967a02ce2e7fbd12c0a;hp=7ee3f92cd414db960a5b14d98d3804d1745c6995;hb=cdb1ba7038c32bac71a3bc783effc1e07049a985;hpb=d8bbec7af1d3b594d023264e512025c03093cf2b diff --git a/example/Main.hs b/example/Main.hs index 7ee3f92..1e2e3ba 100644 --- a/example/Main.hs +++ b/example/Main.hs @@ -11,8 +11,8 @@ main = runSession "hie --lsp" fullCaps "test/data/renamePass" $ do -- Send requests and notifications and receive responses let params = DocumentSymbolParams docItem - response <- sendRequest TextDocumentDocumentSymbol params :: Session DocumentSymbolsResponse - liftIO $ print response + rsp <- request TextDocumentDocumentSymbol params :: Session DocumentSymbolsResponse + liftIO $ print rsp -- Or use one of the helper functions getDocumentSymbols docItem >>= liftIO . print