Move example to separate cabal file
[lsp-test.git] / example / Main.hs
diff --git a/example/Main.hs b/example/Main.hs
deleted file mode 100644 (file)
index 1e2e3ba..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-import Control.Applicative.Combinators
-import Control.Monad.IO.Class
-import Language.Haskell.LSP.Test
-import Language.Haskell.LSP.Types
-
-main = runSession "hie --lsp" fullCaps "test/data/renamePass" $ do
-  docItem <- openDoc "Desktop/simple.hs" "haskell"
-  
-  -- Use your favourite favourite combinators.
-  skipManyTill loggingNotification (count 2 publishDiagnosticsNotification)
-
-  -- Send requests and notifications and receive responses
-  let params = DocumentSymbolParams docItem
-  rsp <- request TextDocumentDocumentSymbol params :: Session DocumentSymbolsResponse
-  liftIO $ print rsp
-
-  -- Or use one of the helper functions
-  getDocumentSymbols docItem >>= liftIO . print
-