Update bounds on haskell-lsp
authorLuke Lau <luke_lau@icloud.com>
Mon, 22 Apr 2019 14:22:14 +0000 (15:22 +0100)
committerLuke Lau <luke_lau@icloud.com>
Mon, 22 Apr 2019 14:22:14 +0000 (15:22 +0100)
lsp-test.cabal
src/Language/Haskell/LSP/Test.hs
stack.yaml

index 220f2a1681daa078298692c5b46d2df1d2dd2daf..468052fd742591d355cb32390b86f2188be1270a 100644 (file)
@@ -1,20 +1,20 @@
 name:                lsp-test
-version:             0.5.1.0
+version:             0.5.1.1
 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>.
   @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>.
+  <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/haskell-lsp-test#readme
+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
+bug-reports:         https://github.com/bubba/lsp-test/issues
 copyright:           2019 Luke Lau
 category:            Testing
 build-type:          Simple
@@ -25,7 +25,7 @@ tested-with:         GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3, GHC == 8.6.4
 
 source-repository head
   type:     git
-  location: https://github.com/Bubba/haskell-lsp-test/
+  location: https://github.com/bubba/haskell-lsp-test/
 
 library
   hs-source-dirs:      src
@@ -36,7 +36,7 @@ library
                      , parser-combinators:Control.Applicative.Combinators
   default-language:    Haskell2010
   build-depends:       base >= 4.10 && < 5
-                     , haskell-lsp >= 0.8 && < 0.9
+                     , haskell-lsp >= 0.8 && < 0.11
                      , aeson
                      , aeson-pretty
                      , ansi-terminal
@@ -78,7 +78,7 @@ test-suite tests
   build-depends:       base >= 4.10 && < 5
                      , hspec
                      , lens
-                     , haskell-lsp >= 0.8 && < 0.9
+                     , haskell-lsp >= 0.8 && < 0.11
                      , lsp-test
                      , data-default
                      , aeson
index 3b40842dd7ff169c69e3b1bbb3e2210a4d0eaaf0..1b24fb74d11abea61c24c0b7e4f45bfd6b075419 100644 (file)
@@ -449,7 +449,7 @@ applyEdit doc edit = do
   caps <- asks sessionCapabilities
 
   let supportsDocChanges = fromMaybe False $ do
-        let C.ClientCapabilities mWorkspace _ _ = caps
+        let mWorkspace = C._workspace caps
         C.WorkspaceClientCapabilities _ mEdit _ _ _ _ _ _ <- mWorkspace
         C.WorkspaceEditClientCapabilities mDocChanges <- mEdit
         mDocChanges
index 7a2a978749838fc66429318b8737f0d2a67ddd38..57f3658565779664515d01c80e2670ec4cab294b 100644 (file)
@@ -2,3 +2,6 @@ resolver: lts-13.15
 packages:
   - .
 
+extra-deps:
+  - haskell-lsp-0.10.0.0
+  - haskell-lsp-types-0.10.0.0