packages feed

hls-refine-imports-plugin 1.0.2.0 → 1.0.3.0

raw patch · 2 files changed

+7/−5 lines, 2 filesdep ~ghcidedep ~hls-plugin-apiPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ghcide, hls-plugin-api

API changes (from Hackage documentation)

Files

hls-refine-imports-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-refine-imports-plugin-version:            1.0.2.0+version:            1.0.3.0 synopsis:           Refine imports plugin for Haskell Language Server description:   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -16,6 +16,7 @@   test/testdata/*.yaml  library+  buildable: True   exposed-modules:    Ide.Plugin.RefineImports   hs-source-dirs:     src   build-depends:@@ -24,10 +25,10 @@     , containers     , deepseq     , ghc-    , ghcide                       ^>=1.7+    , ghcide                       ^>=1.8     , hls-explicit-imports-plugin  ^>=1.1     , hls-graph-    , hls-plugin-api               ^>=1.4+    , hls-plugin-api               ^>=1.5     , lsp     , text     , unordered-containers@@ -38,6 +39,7 @@     TypeOperators  test-suite tests+  buildable: True   type:             exitcode-stdio-1.0   default-language: Haskell2010   hs-source-dirs:   test
src/Ide/Plugin/RefineImports.hs view
@@ -187,8 +187,8 @@       -- second layer is from the imports of first layer to their imports       ImportMap importIm <- use_ GetImportMap path       forM importIm $ \imp_path -> do-        imp_tmr <- use_ TypeCheck imp_path-        return $ tcg_exports $ tmrTypechecked imp_tmr+        imp_hir <- use_ GetModIface imp_path+        return $ mi_exports $ hirModIface imp_hir    -- Use the GHC api to extract the "minimal" imports   -- We shouldn't blindly refine imports