Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Jan 16, 2022
1 parent 9373f06 commit bfc0605
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import qualified Data.Map as Map
import qualified Data.Text as T
import Development.IDE hiding (pluginHandlers)
import Development.IDE.GHC.Compat
import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (..),
annsA, astA)
import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (..))

import Ide.Types
import Language.Haskell.GHC.ExactPrint
import Language.Haskell.GHC.ExactPrint.Types hiding (GhcPs)
Expand Down
6 changes: 3 additions & 3 deletions plugins/hls-rename-plugin/src/Ide/Plugin/Rename.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ import Development.IDE.Core.Shake
import Development.IDE.GHC.Compat
import Development.IDE.Spans.AtPoint
#if MIN_VERSION_ghc(9,0,1)
import GHC.Parser.Annotation (AnnContext, AnnList,
AnnParen, AnnPragma)
import GHC.Types.Name
#else
import Name
#endif
import Debug.Trace
import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (GetAnnotatedParsedSource))
import GHC.Parser.Annotation (AnnContext, AnnList,
AnnParen, AnnPragma)
import HieDb.Query
import Ide.Plugin.Config
import Ide.PluginUtils
Expand Down Expand Up @@ -84,7 +84,7 @@ getSrcEdits state updateMod uri = do
"Rename.GetParsedModuleWithComments"
state
(use GetAnnotatedParsedSource nfp)
let (ps, apiAnns) = (astA annotatedAst, annsA annotatedAst)
let (ps, anns) = (astA annotatedAst, annsA annotatedAst)
#if !MIN_VERSION_ghc(9,2,1)
let src = T.pack $ exactPrint ps anns
res = T.pack $ exactPrint (updateMod <$> ps) anns
Expand Down

0 comments on commit bfc0605

Please sign in to comment.