Skip to content

Add INLINE [1] pragma to compareInt / compareWord

Alex McKenna requested to merge alex-mckenna/ghc:issue-22643 into master

This PR adds INLINE [1] pragmas to compareInt and compareWord to allow rewrite rules to be created using following the approach described in the matching_overloaded_methods_in_rules note in GHC.Classes.

@AndreasK tagging you for review if that's alright, since you created the issue. I didn't see a place with other rewrite rules on Int / Word to add the rule mentioned in the issue, if there is a place and I missed it a nudge in the right direction is welcome 🙂

Closes #22643

Merge request reports