Hello szefirov,

Thursday, September 21, 2006, 2:04:38 PM, you wrote:

> Is it possible to represent a result of several impure calculation as a
> pure list?

list = repeat (runST my_impure_calculation)

> The only way I can think of is the use of unsafePerformIO.

runST is really a safe variant of unsafePerformIO :) - it limits
operations allowed inside computation to ones what don't affect
external world


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to