packages feed

hls-gadt-plugin 2.1.0.0 → 2.2.0.0

raw patch · 2 files changed

+7/−7 lines, 2 filesdep ~ghcidedep ~hls-plugin-apidep ~hls-test-utilsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ghcide, hls-plugin-api, hls-test-utils, lsp

API changes (from Hackage documentation)

Files

hls-gadt-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-gadt-plugin-version:            2.1.0.0+version:            2.2.0.0 synopsis:           Convert to GADT syntax plugin description:   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server/tree/master/plugins/hls-gadt-plugin#readme>@@ -30,13 +30,13 @@     , containers     , extra     , ghc-    , ghcide                 == 2.1.0.0+    , ghcide                 == 2.2.0.0     , ghc-boot-th     , ghc-exactprint-    , hls-plugin-api         == 2.1.0.0+    , hls-plugin-api         == 2.2.0.0     , hls-refactor-plugin     , lens-    , lsp                    >=2.1.0.0+    , lsp                    >=2.2.0.0     , mtl     , text     , transformers@@ -59,7 +59,7 @@     , base     , filepath     , hls-gadt-plugin-    , hls-test-utils              == 2.1.0.0+    , hls-test-utils              == 2.2.0.0     , lens     , lsp     , lsp-test
test/Main.hs view
@@ -48,7 +48,7 @@ gadtPragmaTest :: TestName -> Bool -> TestTree gadtPragmaTest title hasGADT = testCase title     $ withCanonicalTempDir-    $ \dir -> runSessionWithServer gadtPlugin dir $ do+    $ \dir -> runSessionWithServer def gadtPlugin dir $ do         doc <- createDoc "A.hs" "haskell" (T.unlines ["module A where", "data Foo = Bar"])         _ <- waitForProgressDone         (act:_) <- findGADTAction <$> getCodeActions doc (Range (Position 1 0) (Position 1 1))@@ -61,7 +61,7 @@  runTest :: TestName -> FilePath -> UInt -> UInt -> UInt -> UInt -> TestTree runTest title fp x1 y1 x2 y2 =-    goldenWithHaskellDoc gadtPlugin title testDataDir fp "expected" "hs" $ \doc -> do+    goldenWithHaskellDoc def gadtPlugin title testDataDir fp "expected" "hs" $ \doc -> do         _ <- waitForProgressDone         (act:_) <- findGADTAction <$> getCodeActions doc (Range (Position x1 y1) (Position x2 y2))         executeCodeAction act