Skip to content

Commit ce83ac1

Browse files
committed
Comment to be compatible
1 parent 0d90b48 commit ce83ac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hls-class-plugin/src/Ide/Plugin/Class/ExactPrint.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Language.Haskell.GHC.ExactPrint.Utils (rs)
2626
#endif
2727

2828
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)
3030
#if MIN_VERSION_ghc(9,2,0)
3131
makeEditText 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

120120
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
122122
#endif

0 commit comments

Comments
 (0)