X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=example%2FMain.hs;h=4891c6c12219cf34d85b1b23bb1a303cbb17bd6f;hb=269f303e5e44fba835c51eacfca622c488a06b9f;hp=1697ca53d90cd51b2144b2d438efbc00ab568c70;hpb=12ac9c23d054e92a82146320e2b061c11a87e3f1;p=opengl.git diff --git a/example/Main.hs b/example/Main.hs index 1697ca5..4891c6c 100644 --- a/example/Main.hs +++ b/example/Main.hs @@ -1,17 +1,12 @@ import Language.Haskell.LSP.Test import Language.Haskell.LSP.TH.DataTypesJSON -import Data.Proxy import Control.Monad.IO.Class -main = runSession "test/recordings/renamePass" $ do +main = runSession "hie --lsp" "test/recordings/renamePass" $ do + docItem <- openDoc "Desktop/simple.hs" "haskell" - docItem <- getDocItem "Desktop/simple.hs" "haskell" - docId <- TextDocumentIdentifier <$> getDocUri "Desktop/simple.hs" - - sendNotification TextDocumentDidOpen (DidOpenTextDocumentParams docItem) - - sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams docId) + sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams docItem) skipMany loggingNotification