serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
176 stars 26 forks source link

Re-export lookup for Map #284

Open Sorokin-Anton opened 1 year ago

Sorokin-Anton commented 1 year ago

Problem

We're re-exporting Map from containers and HashMap from unordered-containers, but there is no way to efficiently lookup a value by key without adding new dependencies, e.g. we're not reexporting Map.lookup and Map.!?

Note that we already have ToPairs t typeclass that have Key t and Val t type synonyms, and there are instances for Map and HashMap

Possible solutions