File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
hls-rename-plugin/src/Ide/Plugin Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import qualified Data.Map as Map
1515import qualified Data.Text as T
1616import Development.IDE hiding (pluginHandlers )
1717import Development.IDE.GHC.Compat
18- import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (.. ),
19- annsA , astA )
18+ import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (.. ))
19+
2020import Ide.Types
2121import Language.Haskell.GHC.ExactPrint
2222import Language.Haskell.GHC.ExactPrint.Types hiding (GhcPs )
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ import Development.IDE.Core.Shake
2424import Development.IDE.GHC.Compat
2525import Development.IDE.Spans.AtPoint
2626#if MIN_VERSION_ghc(9,0,1)
27+ import GHC.Parser.Annotation (AnnContext , AnnList ,
28+ AnnParen , AnnPragma )
2729import GHC.Types.Name
2830#else
2931import Name
3032#endif
3133import Debug.Trace
3234import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (GetAnnotatedParsedSource ))
33- import GHC.Parser.Annotation (AnnContext , AnnList ,
34- AnnParen , AnnPragma )
3535import HieDb.Query
3636import Ide.Plugin.Config
3737import Ide.PluginUtils
@@ -84,7 +84,7 @@ getSrcEdits state updateMod uri = do
8484 " Rename.GetParsedModuleWithComments"
8585 state
8686 (use GetAnnotatedParsedSource nfp)
87- let (ps, apiAnns ) = (astA annotatedAst, annsA annotatedAst)
87+ let (ps, anns ) = (astA annotatedAst, annsA annotatedAst)
8888#if !MIN_VERSION_ghc(9,2,1)
8989 let src = T. pack $ exactPrint ps anns
9090 res = T. pack $ exactPrint (updateMod <$> ps) anns
You can’t perform that action at this time.
0 commit comments