[Haskell-cafe] two problems with Data.Binary and Data.ByteString

Ketil Malde ketil at malde.org
Wed Nov 5 10:01:07 EST 2008


Ketil Malde <ketil at malde.org> writes:

> Doing 'x <- decodeFile "/dev/zero"

Well, it turns out 'decodeFile' needs to -- or does, anyway -- check
whether the file is empty.  Replacing it with a combination of
'decode' and 'readFile' solved the problem.

Thanks to Saizan and the other people hanging around on #haskell.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list