[Haskell-cafe] Re: [Haskell] Top Level <-
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sat Aug 30 14:19:54 EDT 2008
On 2008 Aug 30, at 6:28, Adrian Hey wrote:
> Ganesh Sittampalam wrote:
>> How do the implementers of Data.Unique know that they musn't let
>> them be serialised/deserialised?
>
> Because if you could take a String and convert it to a Unique there
> would be no guarantee that result was *unique*.
>
>> What stops the same rule from applying to Data.Random?
>
> Well the only data type defined by this is StdGen, which is a Read/
> Show
> instance. I guess there's no semantic problem with that (can't think
> of
> one off hand myself).
You *want* to be able to reproduce a given random seed, for
simulations and the like.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list