I was just contemplating hashes, and it occurred to me that it would be
nice to be able to compute the hash of a lazily constructed bytestring and
lazily consume its output without requiring the whole string to ever be in
memory. Or in general, it'd be nice to be able to perform two simultaneous
On Sun, May 13, 2007 at 08:30:41AM -0700, David Roundy wrote:
do l - readFile foo
let len = length l
writeFile bar l
putStrLn $ Length is ++ show l
Oops, of course this should have been show len in the last line.
--
David Roundy
http://www.darcs.net
On Sun, 13 May 2007, David Roundy wrote:
I was just contemplating hashes, and it occurred to me that it would be
nice to be able to compute the hash of a lazily constructed bytestring and
lazily consume its output without requiring the whole string to ever be in
memory. Or in general, it'd be
On Sun, 13 May 2007, David Roundy wrote:
I was just contemplating hashes, and it occurred to me that it would be
nice to be able to compute the hash of a lazily constructed bytestring and
lazily consume its output without requiring the whole string to ever be in
memory. Or in general, it'd