[Haskell-cafe] Data.Binary and error handling

Khudyakov Alexey alexey.skladnoy at gmail.com
Fri Nov 27 15:43:25 EST 2009


В сообщении от 27 ноября 2009 23:09:53 Don Stewart написал:
> alexey.skladnoy:
> > Hello
> >
> >  Is there any plans to add error handling for binary? When it comes to
> > binary parsing most awkward part is error handling
> 
> It is now available in the 'cereal' package. A strict binary with
> explicit, checked error handling.
> 
It does but it was already noted that cereal uses strict bytestrings which are 
not really convenient when dealing with huge inputs. One may end up using both 
binary and cereal which is not really satisfactory.

Also binary's Get monad is strict since 0.5.0.2 so addition of error handling 
wont bring strictness problems.



More information about the Haskell-Cafe mailing list