Re[2]: [Haskell-cafe] Mutable arrays

2008-02-05 Thread Bulat Ziganshin
Hello Jeff, Tuesday, February 5, 2008, 7:36:27 PM, you wrote: > Changing the subject slightly, I once wrote code in Concurrent > Clean that filtered a file that was larger than the available memory > on my PC.  > Is this possible with Monads in Haskell?  google for "simple unix tools" -- Best

Re[2]: [Haskell-cafe] Mutable arrays

2008-02-07 Thread Bulat Ziganshin
Hello Jeff, Thursday, February 7, 2008, 1:31:59 AM, you wrote: > I noticed that > GHC implements mutable arrays in the IO monad.  This seems odd to > me.  Arrays aren't related to IO.  IO monad isn't only about I/O but about imperative stuff in general. there is also special monad limited to mut

Re[2]: [Haskell-cafe] Mutable arrays

2008-02-07 Thread Bulat Ziganshin
Hello Jeff, Thursday, February 7, 2008, 4:17:27 AM, you wrote: > logical place for mutable arrays.  However, I don't understand the > motivation for implementing it in IO.  Were mutable arrays added to > IO because it would be difficult to write code that does both IO and > manipulates arrays ot