Merge branch 'master' of https://github.com/Bubba/haskell-lsp-test
[lsp-test.git] / example / Main.hs
index d66e17e11075f0f018e7ee8a37eaf4410734212a..fc453db39cdb032a98cb0c468e697167816458cf 100644 (file)
@@ -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