Skip to content

Make use of hashable's Hashed type?! #552

@sjakobi

Description

@sjakobi

https://hackage.haskell.org/package/hashable-1.5.0.0/docs/Data-Hashable.html#t:Hashed

(Original discussion: haskell-unordered-containers/hashable#76)

How about adding

toHashedList :: HashMap k v -> [(Hashed k, v)]

fromUniqueHashedList :: [(Hashed k, v)] -> HashMap k v

This could be useful for the code pattern

HM.fromList <$> doStuff (HM.toList m)

(CC @andrewthad, who implemented the type in haskell-unordered-containers/hashable#121)

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