Re: Re[4]: [Haskell-cafe] REALLY simple STRef examples

2006-07-21 Thread Chad Scherrer
The IO monad hasn't given me too much trouble, but I want to be sure to structure things the way "they should be". If I get everything running using IO first and then have type-checking problems with ST, it will be tempting to just slap on an unsafePerformIO and call it good. Sure, it's really doi

RE: Re[4]: [Haskell-cafe] REALLY simple STRef examples

2006-07-21 Thread Simon Peyton-Jones
| > | ps: you successfully going through all the standard Haskell troubles | > in | > | this area :) seems that making FAQ about using ST monad will be a | > | good idea :) | | > Indeed. If someone would like to start one, a good place for it would be | > GHC's collaborative-documentation Wiki |