| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Unique.Really
Description
An abstract interface to a unique symbol generator.
Synopsis
- data Unique
- newUnique :: IO Unique
- hashUnique :: Unique -> Int
Documentation
An abstract unique value.
Values of type Unique may be compared for equality
and hashed into Int.
Note: Unlike the symbols from Data.Unique, the symbols from this module do not become equal after reloads in the GHC interpreter!
hashUnique :: Unique -> Int Source #
Hashes a Unique into an Int.
Two Uniques may hash to the same value, although in practice this is unlikely.
The Int returned makes a good hash key.