X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=example%2FMain.hs;h=29795fa22e52b76279d1ae98eca5c5f111eb72cd;hb=5170a20560a68b8fcaed83ecaf6146d84a147992;hp=0c8ae9ff821618ee85f198decd3170e199e391ed;hpb=4eb97ef8a3d4b3908fa9b5bbbd5ae77cfa95cecc;p=opengl.git diff --git a/example/Main.hs b/example/Main.hs index 0c8ae9f..29795fa 100644 --- a/example/Main.hs +++ b/example/Main.hs @@ -4,15 +4,15 @@ import Data.Proxy import Control.Monad.IO.Class -main = runSession "hie" "test/recordings/renamePass" $ do +main = runSession "hie --lsp" "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 + anyResponse >>= liftIO . print