Adding binary to the Haskell Platform

Jean-Philippe Bernardy jeanphilippe.bernardy at gmail.com
Thu Aug 6 05:13:28 EDT 2009


> That's right. Originally, it used a custom Either type, but it isn't
> possible to stream decoders that way.

What about this: you could return a pair (Result,Error).

By forcing the Result you get an exception if there is an error.
You can check the Error always without risk of exception.

Cheers,
JP.


More information about the Libraries mailing list