[Haskell-cafe] Hash table constructors return table in IO Monad. Why?
Bryan O'Sullivan
bos at serpentine.com
Thu May 12 20:22:58 CEST 2011
On Thu, May 12, 2011 at 9:22 AM, Stephen Tetley <stephen.tetley at gmail.com>wrote:
> The hashtable needs to be been created in IO, after that, think of the
> 'hashtable' as a analogous to a file handle. You have to pass it
> around to do anything with it - but the only things you can do with it
> are in IO.
>
The appropriate pure package to be using instead is unordered-containers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110512/490d914a/attachment.htm>
More information about the Haskell-Cafe
mailing list