File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/hls-class-plugin/src/Ide/Plugin/Class Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import Language.Haskell.GHC.ExactPrint.Utils (rs)
2626#endif
2727
2828makeEditText :: Monad m => ParsedModule -> DynFlags -> AddMinimalMethodsParams -> MaybeT m (T. Text , T. Text )
29- addMethodDecls :: ParsedSource -> [(LHsDecl GhcPs , LHsDecl GhcPs )] -> Range -> Bool -> TransformT Identity (Located HsModule )
29+ -- addMethodDecls :: ParsedSource -> [(LHsDecl GhcPs, LHsDecl GhcPs)] -> Range -> Bool -> TransformT Identity (Located HsModule)
3030#if MIN_VERSION_ghc(9,2,0)
3131makeEditText pm df AddMinimalMethodsParams {.. } = do
3232 List mDecls <- MaybeT . pure $ traverse (makeMethodDecl df) methodGroup
@@ -118,5 +118,5 @@ addMethodDecls ps mDecls range withSig = do
118118 foldM (insertAfter d) ps (reverse decls)
119119
120120findInstDecl :: ParsedSource -> Range -> Transform (LHsDecl GhcPs )
121- findInstDecl ps range = head . filter (inRange range . getLoc ) <$> hsDecls ps
121+ findInstDecl ps range = head . filter (inRange range) <$> hsDecls ps
122122#endif
You can’t perform that action at this time.
0 commit comments