Nnewtypenewtype UniquePeek#An abstract unique object. Objects of type Unique may be compared for equality and ordering and hashed into Int.Example1 expression>>> :{do x <- newUnique print (x == x) y <- newUnique print (x == y):}TrueFalseInstances4Eq, Ord, NFData, HashableEq UniqueDefined in ghc-internal-9.1003.0 · GHC.Internal.Data.UniqueOrd UniqueDefined in ghc-internal-9.1003.0 · GHC.Internal.Data.UniqueNFData UniqueDefined in deepseq-1.5.0.0 · Control.DeepSeqHashable UniqueDefined in hashable-1.4.7.0 · Data.Hashable.Class
vvaluehashUnique :: Unique -> IntPeek#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.
vvaluenewUnique :: IO UniquePeek#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.