hls-retrie-plugin 1.0.2.2 → 1.0.3.0
raw patch · 2 files changed
+16/−15 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-retrie-plugin.cabal +7/−7
- src/Ide/Plugin/Retrie.hs +9/−8
hls-retrie-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: hls-retrie-plugin-version: 1.0.2.2+version: 1.0.3.0 synopsis: Retrie integration plugin for Haskell Language Server description: Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -12,11 +12,11 @@ build-type: Simple extra-source-files: LICENSE +source-repository head+ type: git+ location: https://github.com/haskell/haskell-language-server.git+ library- if impl(ghc >= 9.3)- buildable: False- else- buildable: True exposed-modules: Ide.Plugin.Retrie hs-source-dirs: src build-depends:@@ -28,9 +28,9 @@ , directory , extra , ghc- , ghcide ^>=1.8+ , ghcide ^>=1.9 , hashable- , hls-plugin-api ^>=1.5+ , hls-plugin-api ^>=1.6 , lsp , lsp-types , retrie >=0.1.1.0
src/Ide/Plugin/Retrie.hs view
@@ -96,6 +96,11 @@ import Retrie.CPP (CPP (NoCPP), parseCPP) import Retrie.ExactPrint (Annotated, fix, transformA, unsafeMkA)++#if MIN_VERSION_ghc(9,3,0)+import GHC.Types.PkgQual+#endif+ #if MIN_VERSION_ghc(9,2,0) import Retrie.ExactPrint (makeDeltaAst) #else@@ -306,11 +311,7 @@ ] | L (locA -> l) r <- rds_rules, pos `isInsideSrcSpan` l,-#if MIN_VERSION_ghc(8,8,0) let HsRule {rd_name = L _ (_, rn)} = r,-#else- let HsRule _ (L _ (_,rn)) _ _ _ _ = r,-#endif let ruleName = unpackFS rn ] where@@ -552,7 +553,11 @@ ideclSource' = if ideclSource then IsBoot else NotBoot toMod = noLocA . GHC.mkModuleName ideclName = toMod ideclNameString+#if MIN_VERSION_ghc(9,3,0)+ ideclPkgQual = NoRawPkgQual+#else ideclPkgQual = Nothing+#endif ideclSafe = False ideclImplicit = False ideclHiding = Nothing@@ -563,8 +568,4 @@ ideclExt = GHC.noExtField #endif ideclAs = toMod <$> ideclAsString-#if MIN_VERSION_ghc(8,10,0) ideclQualified = if ideclQualifiedBool then GHC.QualifiedPre else GHC.NotQualified-#else- ideclQualified = ideclQualifiedBool-#endif