Try caching windows stack directories
[opengl.git] / lsp-test.cabal
index 4a23da94e6311e8d85ca619829695d6d0c7917ae..319cc8aa2bab320ff339e95c0d0185fcd47621eb 100644 (file)
@@ -1,18 +1,13 @@
 name:                lsp-test
-version:             0.1.0.0
+version:             0.5.0.0
 synopsis:            Functional test framework for LSP servers.
 description:
   A test framework for writing tests against 
   <https://microsoft.github.io/language-server-protocol/ Language Server Protocol servers>.
-  @lsp-test@ launches your server as a subprocess and allows you to simulate a session
-  down to the wire.
-  Used for testing in <https://github.com/haskell/haskell-ide-engine haskell-ide-engine>.
-  > runSession "hie" fullCaps "path/to/root/dir" $ do
-  > doc <- openDoc "Desktop/simple.hs" "haskell"
-  > diags <- waitForDiagnostics
-  > let pos = Position 12 5
-  >     params = TextDocumentPositionParams doc
-  > hover <- request TextDocumentHover params
+  @Language.Haskell.LSP.Test@ launches your server as a subprocess and allows you to simulate a session
+  down to the wire, and @Language.Haskell.LSP.Test@ can replay captured sessions from
+  <haskell-lsp-test https://hackage.haskell.org/package/haskell-lsp>.
+  It's currently used for testing in <https://github.com/haskell/haskell-ide-engine haskell-ide-engine>.
 homepage:            https://github.com/Bubba/haskell-lsp-test#readme
 license:             BSD3
 license-file:        LICENSE
@@ -25,6 +20,7 @@ category:            Testing
 build-type:          Simple
 cabal-version:       2.0
 extra-source-files:  README.md
+                   , ChangeLog.md
 tested-with:         GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3
 
 source-repository head
@@ -40,7 +36,7 @@ library
                      , parser-combinators:Control.Applicative.Combinators
   default-language:    Haskell2010
   build-depends:       base >= 4.7 && < 5
-                     , haskell-lsp >= 0.4
+                     , haskell-lsp >= 0.8 && < 0.9
                      , aeson
                      , aeson-pretty
                      , ansi-terminal
@@ -64,8 +60,7 @@ library
     build-depends:     Win32
   else
     build-depends:     unix
-  other-modules:       Language.Haskell.LSP.Test.Capabilities
-                       Language.Haskell.LSP.Test.Compat
+  other-modules:       Language.Haskell.LSP.Test.Compat
                        Language.Haskell.LSP.Test.Decoding
                        Language.Haskell.LSP.Test.Exceptions
                        Language.Haskell.LSP.Test.Files
@@ -83,9 +78,9 @@ test-suite tests
   build-depends:       base >= 4.7 && < 5
                      , hspec
                      , lens
-                     , data-default
-                     , haskell-lsp >= 0.4
+                     , haskell-lsp >= 0.8 && < 0.9
                      , lsp-test
+                     , data-default
                      , aeson
                      , unordered-containers
                      , text