[Haskell-beginners] populating a bloom filter; stymied by ST monad

Joey Hess joey at kitenet.net
Mon Mar 12 18:55:40 CET 2012


I mostly figured this out. stToIO allows converting (ST s a) to (IO a)
and so I can update the bloom filter in IO.

I do still wonder if there's a better way, avoiding modifying the filter
inside IO and keeping it in ST.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120312/04e701bb/attachment.pgp>


More information about the Beginners mailing list