Imperative data structures
John Meacham
john@repetae.net
Thu, 29 May 2003 21:18:00 -0700
Wasn't there a plan to make a superclass which all 'stateful' monads
could be instances of, so we no longer have this IO vs. ST problem?
John
On Fri, May 30, 2003 at 05:13:36AM +0300, Lauri Alanko wrote:
> In GHC 6.0 there is a new data structure, Data.HashTable. Why is it
> based on the IO monad instead of ST? I really think it should be a
> general policy that imperative data structures be based on the ST monad
> so they can be used for implementing observably pure functions. There's
> always stToIO for when one really wants to do stuff in the IO monad.
>
>
> Lauri Alanko
> la@iki.fi
> _______________________________________________
> Libraries mailing list
> Libraries@haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
--
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john@foo.net
---------------------------------------------------------------------------