Merge branch 'master' of https://github.com/Bubba/haskell-lsp-test
[lsp-test.git] / README.md
1 # haskell-lsp-test [![Build Status](https://travis-ci.com/Bubba/haskell-lsp-test.svg?branch=master)](https://travis-ci.com/Bubba/haskell-lsp-test)
2 This is the functional testing framework for [haskell-ide-engine](https://github.com/haskell/haskell-ide-engine), and potentially any other Language Server Protocol server.
3
4 ```haskell
5 runSession "session/root/dir" $ do
6   doc <- openDoc "foo.hs" "haskell"
7   
8   skipMany notification
9   
10   sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams doc)
11               
12   rspSymbols <- response :: DocumentSymbolsResponse
13   let (List symbols) = fromJust (rspSymbols ^. result)
14 ```