X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=example%2FMain.hs;h=fc453db39cdb032a98cb0c468e697167816458cf;hb=bc52b000bf018360efbfa0fcd289329c70d2c77e;hp=d66e17e11075f0f018e7ee8a37eaf4410734212a;hpb=f1238f8db54eafbf0e3352140818875ad4cfd997;p=lsp-test.git diff --git a/example/Main.hs b/example/Main.hs index d66e17e..fc453db 100644 --- a/example/Main.hs +++ b/example/Main.hs @@ -4,15 +4,15 @@ import Data.Proxy import Control.Monad.IO.Class -main = runSession "test/recordings/renamePass" $ do +main = runSession "hie" "test/recordings/renamePass" $ do docItem <- getDocItem "Desktop/simple.hs" "haskell" docId <- TextDocumentIdentifier <$> getDocUri "Desktop/simple.hs" sendNotification TextDocumentDidOpen (DidOpenTextDocumentParams docItem) - sendRequest (Proxy :: Proxy DocumentSymbolRequest) TextDocumentDocumentSymbol (DocumentSymbolParams docId) + sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams docId) skipMany loggingNotification - response >>= liftIO . print \ No newline at end of file + anyResponse >>= liftIO . print