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.
5 runSession "session/root/dir" $ do
6 doc <- openDoc "foo.hs" "haskell"
10 sendRequest (Proxy :: Proxy DocumentSymbolRequest)
11 TextDocumentDocumentSymbol
12 (DocumentSymbolParams doc)
14 RspDocumentSymbols rspSymbols <- response
15 let (List symbols) = fromJust (rspSymbols ^. result)