[Haskell-cafe] lazily traversing a foreign data structure
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Thu Oct 25 14:07:52 EDT 2007
On Oct 25, 2007, at 13:04 , Derek Elkins wrote:
> Just use unsafeInterleaveIO in the obvious definition to read all the
> keys. That said, it's not called unsafeInterleaveIO for no reason.
I think it might actually be safe in this case: if the file changes
out from under your lazy I/O, far worse things happen in the gdbm
library layer than in the unsafe-IO Haskell layer.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list