Add documentEdit and friends helper functions
[opengl.git] / example / Main.hs
1 import Language.Haskell.LSP.Test
2 import Language.Haskell.LSP.TH.DataTypesJSON
3
4 import Control.Monad.IO.Class
5
6 main = runSession "hie --lsp" "test/recordings/renamePass" $ do
7   docItem <- openDoc "Desktop/simple.hs" "haskell"
8   
9   sendRequest TextDocumentDocumentSymbol (DocumentSymbolParams docItem)
10
11   skipMany loggingNotification
12
13   anyResponse >>= liftIO . print