Data.Unique (original) (raw)
Copyright | (c) The University of Glasgow 2001 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | stable |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.Unique
Description
An abstract interface to a unique symbol generator.
An abstract unique object. Objects of type [Unique](Data-Unique.html#t:Unique "Data.Unique")
may be compared for equality and ordering and hashed into [Int](Data-Int.html#t:Int "Data.Int")
.
>>>
**:{** **
**do x <- newUnique
print (x == x)
y <- newUnique
print (x == y)
:}
True
False
Instances
Instances details