[Haskell-cafe] Suggestions for simulating Object ID

Hemanth Kapila saihemanth at gmail.com
Tue Jun 30 10:27:07 EDT 2009


Thank you. It looks perfect for now.
Just that I can create it only inside an IO
(newUnique  is of type  IO Unique)

Perhaps it involves some magic with random numbers or system time.

Can't we come up with something like this staying within the limits of purity?

Thanks
Hemanth





On 6/30/09, Felipe Lessa <felipe.lessa at gmail.com> wrote:
> On Tue, Jun 30, 2009 at 03:25:26PM +0530, Hemanth Kapila wrote:
>> Can some one please suggest something on simulating some sort of
>> "object-Ids" in Haskell?
>
> Data.Unique[1]?
>
> [1]
> http://hackage.haskell.org/packages/archive/base/latest/doc/html/Data-Unique.html
>
> --
> Felipe.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list