christian-marie / xxhash

Haskell implementation of the XXHash algorithm
Other
16 stars 7 forks source link

Consider using hashabler to support hashing arbitrary types? #2

Closed jberryman closed 7 years ago

jberryman commented 8 years ago

Would you be interested in merging changes that permitted hashing of arbitrary Hashable types from my hashabler package? The resulting hash functions would look something like:

xxHash :: Hashable a=> a -> XXHash

where a may also be ByteString. This would allow hashing of arbitrary haskell values in a performant way (without needing to marshal to a bytestring first), and cross-platform consistent way, etc.

Let me know if you're interested and would like more details about what that might look like.

christian-marie commented 8 years ago

Missed this, sorry.

Certainly would merge such changes, if you'd still like to.