File tree 1 file changed +2
-2
lines changed
plugins/hls-class-plugin/src/Ide/Plugin/Class
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)
26
26
#endif
27
27
28
28
makeEditText :: 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)
30
30
#if MIN_VERSION_ghc(9,2,0)
31
31
makeEditText pm df AddMinimalMethodsParams {.. } = do
32
32
List mDecls <- MaybeT . pure $ traverse (makeMethodDecl df) methodGroup
@@ -118,5 +118,5 @@ addMethodDecls ps mDecls range withSig = do
118
118
foldM (insertAfter d) ps (reverse decls)
119
119
120
120
findInstDecl :: 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
122
122
#endif
You can’t perform that action at this time.
0 commit comments