[Haskell-cafe] ANNOUNCE: string-conversions-0.1

Michael Snoyman michael at snoyman.com
Fri Mar 9 15:48:47 CET 2012


On Fri, Mar 9, 2012 at 4:36 PM, Sönke Hahn <shahn at cs.tu-berlin.de> wrote:
> Michael Snoyman wrote:
>> I'm the author of convertible-text, and I consider it deprecated (it's
>> marked as such in the synopsis).
>>
>> As far as string-conversions, I'm a little concerned that it's using
>> decodeUtf8, which can throw exceptions from pure code for invalid UTF8
>> sequences. I would prefer decodeUtf8With lenientDecode.
>
> I wasn't aware of 'decodeUtf8With lenientDecode'. I changed it in the repo.
>
>> Actually, my
>> *real* preference would be that a lenient decode was the default so
>> that we aren't exposing a partial function as the default way to
>> decode bytes.
>
> Are you talking about the default in decodeUtf8? (If yes, I tend to agree.)

Yes, that's what I meant.

Michael



More information about the Haskell-Cafe mailing list