[Haskell] Data.Hashtable operations in IO?

ROBERT DOUGLAS HOELZ hoelz at wisc.edu
Tue Feb 20 11:27:58 EST 2007

I was reading the docs for Data.Hashtable, and quickly noticed that operations on a hashtable are of the IO monad.  Why is this?  I should think that the operations would look like this:

insert :: Hashtable -> key -> val -> Hashtable
lookup :: Hashtable -> key -> a


Rob Hoelz

More information about the Haskell mailing list