Mutable hash?
Lauri Alanko
la at iki.fi
Sat Oct 23 14:25:05 EDT 2004
On Thu, Oct 21, 2004 at 09:17:20AM -0400, Robert Dockins wrote:
> There is a hashtable in the IO monad:
>
> http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data.HashTable.html
Why is it in IO instead of the more general ST? IMHO _all_ mutable data
structures should be written for ST (or a generalization thereof), since
one can always use stToIO if operation in the IO monad is really
required.
Lauri Alanko
la at iki.fi
More information about the Glasgow-haskell-users
mailing list