[Haskell] threading mutable state through callbacks

Udo Stenzel u.stenzel at web.de
Wed Oct 13 03:54:27 EDT 2004

Wolfgang Thaller <wolfgang.thaller at gmx.net> schrieb am 13.10.04 04:36:43:
> 2) Evaluation order.
> That's what everyone has been fighting about.
> So what are our options?
> a) unsafePerformIO - like.
> b) Some predetermined order, with semantics like mdo:

c) same as b) plus unsafeInterleaveIO

In fact, I think a specified order for side-effecting initialisation is a good thing.
Initialisation should happen in order of declaration and in order of module 
dependecies.  An initialisation that is to be performed lazily is simply wrapped 
in unsafeInterleaveIO.  Anything wrong with that aproach?



Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193

More information about the Haskell mailing list