Explicitly specify copy on windows
[lsp-test.git] / lsp-test.cabal
index df4833d37ec02b56ffa87bce621b1f946d69d89c..f1035b2572d38ed8bbb416cb9f1a6d51b9c5f96f 100644 (file)
@@ -1,34 +1,46 @@
 name:                lsp-test
-version:             0.1.0.0
+version:             0.5.2.3
 synopsis:            Functional test framework for LSP servers.
--- description:
-homepage:            https://github.com/Bubba/haskell-lsp-test#readme
+description:
+  A test framework for writing tests against
+  <https://microsoft.github.io/language-server-protocol/ Language Server Protocol servers>.
+  @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 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/lsp-test#readme
 license:             BSD3
 license-file:        LICENSE
 author:              Luke Lau
 maintainer:          luke_lau@icloud.com
 stability:           experimental
-bug-reports:         https://github.com/Bubba/haskell-lsp-test/issues
-copyright:           2018 Luke Lau
+bug-reports:         https://github.com/bubba/lsp-test/issues
+copyright:           2019 Luke Lau
 category:            Testing
 build-type:          Simple
-cabal-version:       >=1.10
+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, GHC == 8.6.4, GHC == 8.6.5
+
+source-repository head
+  type:     git
+  location: https://github.com/bubba/lsp-test/
 
 library
   hs-source-dirs:      src
   exposed-modules:     Language.Haskell.LSP.Test
-                     , Language.Haskell.LSP.Test.Capabilities
                      , Language.Haskell.LSP.Test.Replay
   reexported-modules:  haskell-lsp:Language.Haskell.LSP.Types
                      , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
                      , parser-combinators:Control.Applicative.Combinators
   default-language:    Haskell2010
-  build-depends:       base >= 4.7 && < 5
-                     , haskell-lsp >= 0.4
+  build-depends:       base >= 4.10 && < 5
+                     , haskell-lsp >= 0.13.0 && < 0.14
                      , aeson
                      , aeson-pretty
                      , ansi-terminal
+                     , async
                      , bytestring
                      , conduit
                      , conduit-parse
@@ -41,10 +53,10 @@ library
                      , mtl
                      , parser-combinators
                      , process
+                     , rope-utf16-splay
                      , text
                      , transformers
                      , unordered-containers
-                     , yi-rope
   if os(windows)
     build-depends:     Win32
   else
@@ -64,20 +76,13 @@ test-suite tests
   main-is:             Test.hs
   hs-source-dirs:      test
   ghc-options:         -W
-  build-depends:       base >= 4.7 && < 5
+  build-depends:       base >= 4.10 && < 5
                      , hspec
                      , lens
-                     , data-default
-                     , haskell-lsp >= 0.4
+                     , haskell-lsp >= 0.13.0 && < 0.14
                      , lsp-test
+                     , data-default
                      , aeson
                      , unordered-containers
                      , text
   default-language:    Haskell2010
-
-executable lsp-test-example
-  hs-source-dirs:      example
-  main-is:             Main.hs
-  default-language:    Haskell2010
-  build-depends:       base >= 4.7 && < 5
-                     , lsp-test