[Haskell-cafe] Re: Fast Mutable Variables for the IO and ST monads

oleg at pobox.com oleg at pobox.com
Wed Feb 8 00:37:55 EST 2006

Simon Marlow wrote:
> I suggest you follow the same scheme as the unboxed array types, and
> have IOURef/STURef types, parameterised over the element type.  Of
> course, we should have instances for all of the primitive numeric types
> plus Ptr, ForeignPtr, StablePtr, Bool.

Perhaps it may be worth to introduce a class Unpackable as described
at the end of

so we may define STUArray as an instance of MArray, and other similar
unpackable things easier?

More information about the Haskell-Cafe mailing list