Skip to content

Add Hashable instances for Data.Semigroup.{Sum,Product}.#326

Open
jonathanknowles wants to merge 1 commit intohaskell-unordered-containers:masterfrom
jonathanknowles:jonathanknowles/semigroup-sum-product-instances
Open

Add Hashable instances for Data.Semigroup.{Sum,Product}.#326
jonathanknowles wants to merge 1 commit intohaskell-unordered-containers:masterfrom
jonathanknowles:jonathanknowles/semigroup-sum-product-instances

Conversation

@jonathanknowles
Copy link

This PR adds Hashable instances for:

  • Data.Semigroup.Sum
  • Data.Semigroup.Product

deriving newtype instance Hashable a => Hashable (Semi.Max a)

deriving newtype instance Hashable a => Hashable (Semi.Sum a)
deriving newtype instance Hashable a => Hashable (Semi.Product a)
Copy link
Author

Choose a reason for hiding this comment

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

I'd be happy to also add:

  • a @since <version number> for each new instance
  • an accompanying CHANGELOG entry

Though what version should be listed? (I notice that some repositories use "unreleased" as a placeholder for the eventual version number.)

@jonathanknowles
Copy link
Author

@phadej Friendly ping on this PR — just checking whether this change is acceptable or if there's anything you'd like adjusted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments