-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
This would be useful for me for a type (living in a TVar) that:
- updates frequently
- has an expensive hash function
- needs to check hashes infrequently
The implementation should be exactly the same as 'Hashed' without the {-# UNPACK #-} !Int. Maybe have a typeclass:
class Hashable1 h => CacheableHashable h where
hashed :: Hashable a => a -> h a
unhashed :: h a -> aMetadata
Metadata
Assignees
Labels
No labels