[Haskell-cafe] How unique is Unique

Simon Marlow marlowsd at gmail.com
Fri May 27 13:12:46 CEST 2011

On 27/05/2011 08:35, Emil Axelsson wrote:
> Hello!
> Lacking a proper blog, I've written some notes about Data.Unique here:
> http://community.haskell.org/~emax/darcs/MoreUnique/
> This describes a real problem that makes Data.Unique unsuitable for
> implementing observable sharing.
> The document also proposes a solution that uses time stamps to generate
> symbols that are "more unique".
> Does anyone have any comments on the proposed solution? Are there any
> alternatives available?

This has nothing to do with Unique, you are simply using unsafePerformIO 
in an unsafe way.  It is called unsafePerformIO for a reason :-)


More information about the Haskell-Cafe mailing list