File tree 1 file changed +2
-3
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/Plugins
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import Data.Bifunctor (Bifunctor (..))
7
7
import Data.Either.Extra (maybeToEither )
8
8
import qualified Data.Text as T
9
9
import Development.IDE.GHC.Compat
10
- import Development.IDE.GHC.Compat.ExactPrint (exactPrint ,
11
- makeDeltaAst )
10
+ import Development.IDE.GHC.Compat.ExactPrint (exactPrint )
12
11
import Development.IDE.GHC.Error (spanContainsRange )
13
12
import Development.IDE.GHC.ExactPrint (genAnchor1 ,
14
13
modifyMgMatchesT' ,
@@ -120,7 +119,7 @@ appendFinalPatToMatches name = \case
120
119
addArgumentAction :: ParsedModule -> Range -> T. Text -> Maybe T. Text -> Either PluginError [(T. Text , [TextEdit ])]
121
120
addArgumentAction (ParsedModule _ moduleSrc _ _) range name _typ = do
122
121
(newSource, _, _) <- runTransformT $ do
123
- (moduleSrc', join -> matchedDeclNameMay) <- addNameAsLastArgOfMatchingDecl (makeDeltaAst moduleSrc)
122
+ (moduleSrc', join -> matchedDeclNameMay) <- addNameAsLastArgOfMatchingDecl moduleSrc
124
123
case matchedDeclNameMay of
125
124
Just (matchedDeclName, numPats) -> modifySigWithM (unLoc matchedDeclName) (addTyHoleToTySigArg numPats) moduleSrc'
126
125
Nothing -> pure moduleSrc'
You can’t perform that action at this time.
0 commit comments