From 33e79d02ce20276a9d7eb38728249e2b172c4460 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Mon, 22 Apr 2019 15:22:14 +0100 Subject: [PATCH] Update bounds on haskell-lsp --- lsp-test.cabal | 14 +++++++------- src/Language/Haskell/LSP/Test.hs | 2 +- stack.yaml | 3 +++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lsp-test.cabal b/lsp-test.cabal index 220f2a1..468052f 100644 --- a/lsp-test.cabal +++ b/lsp-test.cabal @@ -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 . @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 - . + . It's currently used for testing in . -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 diff --git a/src/Language/Haskell/LSP/Test.hs b/src/Language/Haskell/LSP/Test.hs index 3b40842..1b24fb7 100644 --- a/src/Language/Haskell/LSP/Test.hs +++ b/src/Language/Haskell/LSP/Test.hs @@ -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 diff --git a/stack.yaml b/stack.yaml index 7a2a978..57f3658 100644 --- a/stack.yaml +++ b/stack.yaml @@ -2,3 +2,6 @@ resolver: lts-13.15 packages: - . +extra-deps: + - haskell-lsp-0.10.0.0 + - haskell-lsp-types-0.10.0.0 -- 2.30.2