Skip to content

Optimize certain liftEq cases #546

Closed
@treeowl

Description

@treeowl

GHC sometimes needs to know if two IntMaps have the same keys. Once my patch goes in, it will check this using liftEq (\_ _ -> True). This is pretty good, but it would be even better if it were rewritten to a specialized sameKeys function. We should be able to do this with rewrite rules that "test" whether the function ignores its arguments and always returns true.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions