base-4.1.0.0: Basic librariesSource codeContentsIndex
Data.Unique
Portabilitynon-portable
Stabilityexperimental
Maintainerlibraries@haskell.org
Contents
Unique objects
Description
An abstract interface to a unique symbol generator.
Synopsis
data Unique
newUnique :: IO Unique
hashUnique :: Unique -> Int
Unique objects
data Unique Source
An abstract unique object. Objects of type Unique may be compared for equality and ordering and hashed into Int.
show/hide Instances
newUnique :: IO UniqueSource
Creates a new object of type Unique. The value returned will not compare equal to any other value of type Unique returned by previous calls to newUnique. There is no limit on the number of times newUnique may be called.
hashUnique :: Unique -> IntSource
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.
Produced by Haddock version 2.4.2