hls-explicit-imports-plugin 1.2.0.0 → 1.2.1.0
raw patch · 2 files changed
+6/−2 lines, 2 filesdep ~ghcidePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ghcide
API changes (from Hackage documentation)
Files
hls-explicit-imports-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: hls-explicit-imports-plugin-version: 1.2.0.0+version: 1.2.1.0 synopsis: Explicit imports plugin for Haskell Language Server description: Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -29,7 +29,7 @@ , containers , deepseq , ghc- , ghcide ^>=1.9+ , ghcide ^>=1.9 || ^>= 1.10 , hls-graph , hls-plugin-api ^>=1.6 , lsp
src/Ide/Plugin/ExplicitImports.hs view
@@ -269,7 +269,11 @@ mkExplicitEdit :: (ModuleName -> Bool) -> PositionMapping -> LImportDecl GhcRn -> T.Text -> Maybe TextEdit mkExplicitEdit pred posMapping (L (locA -> src) imp) explicit -- Explicit import list case+#if MIN_VERSION_ghc (9,5,0)+ | ImportDecl {ideclImportList = Just (Exactly, _)} <- imp =+#else | ImportDecl {ideclHiding = Just (False, _)} <- imp =+#endif Nothing | not (isQualifiedImport imp), RealSrcSpan l _ <- src,