[Haskell-cafe] A tale of Project Euler

Andrew Coppin andrewcoppin at btinternet.com
Fri Nov 30 14:39:16 EST 2007


Sebastian Sylvan wrote:
> On Nov 29, 2007 9:10 PM, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
>   
>> How do you avoid accidentally recomputing the list multiple times?
>>     
>
> What do you mean? It's exactly the same as your original program but
> with ST instead of IO? Why would it get accidentally recomputed in
> this scenario and not before?
>   

Because before the moment when it gets executed relative to the main I/O 
thread is explicitly defined, and now it isn't.

>> I don't see Data.Array.Base documented anywhere. (How did you know it
>> exists?)
>>     
>
> Hmm.. I don't remember. But now you know too! :-)
> I think it may be a secret GHC library that you're not supposed to know about...
>   

Hmm. Secret... library... How do you guys find out about all this stuff? 
(And if it's secret, should we be playing with it?)



More information about the Haskell-Cafe mailing list