serokell / universum

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

Reexport 'hashWithSalt' #104

Closed chshersh closed 6 years ago

chshersh commented 6 years ago

universum already reexports Hashable type class. But sometimes you want to implement Hashable instances by your own. In that case you need to

  1. Add hashable package into .cabal dependencies
  2. Add import Data.Hashable (hashWithSalt) in your module.

These steps are really tedious to perform. If instead universum reexports hashWithSalt then there will be no problems. I think it's rather safe to export this function. It's name is rather unambiguous across packages.