Change server filepath to a command to run
[lsp-test.git] / example / Main.hs
index 0c8ae9ff821618ee85f198decd3170e199e391ed..29795fa22e52b76279d1ae98eca5c5f111eb72cd 100644 (file)
@@ -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