[Haskell-cafe] Mutable arrays

Daniel Fischer daniel.is.fischer at web.de
Wed Feb 6 18:37:15 EST 2008


Am Mittwoch, 6. Februar 2008 23:31 schrieb Jeff φ:
>
> At the risk of starting a flame war, being labeled a troll, having Godwin's
> law invoked, and suffering a life time ban from Haskell-Cafe, I'd like to
> broach another subject.  I noticed that GHC implements mutable arrays in
> the IO monad.  This seems odd to me.  Arrays aren't related to IO.  Are
> there obstacles to mixing code that uses IO monads and array monads that
> are most easily worked around by sticking mutable arrays into the IO monad?

IO(U)Arrays are only one variant of mutable Array, there are also ST(U)Arrays, 
which are often preferred.


More information about the Haskell-Cafe mailing list