[Haskell-cafe] hash of a lazy bytestring?

David Roundy droundy at darcs.net
Sun May 13 11:46:38 EDT 2007


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


More information about the Haskell-Cafe mailing list