[Haskell-cafe] Data.Binary and error handling

Antoine Latter aslatter at gmail.com
Fri Nov 27 18:32:19 EST 2009


On Fri, Nov 27, 2009 at 3:14 PM, Khudyakov Alexey
<alexey.skladnoy at gmail.com> wrote:
>> You might want to look at designs that interleave error tokens in the
>> stream.
>>
> Could you point out any examples?

http://hackage.haskell.org/packages/archive/tar/0.3.1.0/doc/html/Codec-Archive-Tar.html#v%3Aread

Check the type of the return value in Codec.Archive.Tar.read

Failures are reported in-line, otherwise the entire result would be
forced in order to determine that there was no error.

Antoine


More information about the Haskell-Cafe mailing list