Data.Unique
An abstract interface to a unique symbol generator.
Unique objects
An abstract unique object. Objects of type Unique
may be
compared for equality and ordering and hashed into Int
.
>>>
:{
do x <- newUnique print (x == x) y <- newUnique print (x == y) :} True False
Instances
Eq Unique Source # | |
Ord Unique Source # | |