Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dhall.Eval.eqMapsBy: Compare map sizes before contents #1065

Merged
merged 3 commits into from
Jul 5, 2019

Conversation

sjakobi
Copy link
Collaborator

@sjakobi sjakobi commented Jul 4, 2019

Data.Map.size is O(1), so we expose that via Dhall.Map.

@sjakobi
Copy link
Collaborator Author

sjakobi commented Jul 4, 2019

Maybe eqMapsBy should even be moved into Dhall.Map?!

Copy link
Collaborator

@Gabriella439 Gabriella439 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea!

@Gabriella439
Copy link
Collaborator

Also, it's fine if we move the logic into Dhall.Map like you suggested

@sjakobi
Copy link
Collaborator Author

sjakobi commented Jul 4, 2019

Maybe eqMapsBy should even be moved into Dhall.Map?!

Ah, I'll hold off until we need the same function in a different module.

Data.Map.size is O(1), so we expose it via Dhall.Map.
@sjakobi
Copy link
Collaborator Author

sjakobi commented Jul 4, 2019

The Mergify check doesn't even show up now. Maybe because the config is different on this branch?!

I'll update the branch to see if that fixes it.

@EggBaconAndSpam EggBaconAndSpam merged commit 28fc9e1 into master Jul 5, 2019
@EggBaconAndSpam EggBaconAndSpam deleted the sjakobi/eq-maps-by branch July 5, 2019 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants