On Sun, Mar 15, 2009 at 9:13 PM, Bryan O'Sullivan <b...@serpentine.com> wrote:
> On Sun, Mar 15, 2009 at 8:40 PM, Alexander Dunlap
> <alexander.dun...@gmail.com> wrote:
>>
>> I have noticed that in both Data.Binary and Data.Text (which is still
>> experimental, but still), the "decode" functions can be undefined
>> (i.e. bottom) if they encounter malformed input.
>
> For decoding Unicode, it's typical to provide a flexible API that can do one
> of the following on a bad encoding:
>
> Substitute a character
> Skip it
> Return the partial decode
> Throw an exception
>
> I just haven't gotten there yet.
>

Thanks! I guess we'll see how this comes together.

Does anyone know about error handling options in Data.Binary? Are
there plans to add an error handling mechanism?

Alex
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to