<div dir="ltr">If the intent is to keep this function indefinitely then why abuse DEPRECATED? Why not utilize WARNING?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 7:50 AM, Oleg Grenrus <span dir="ltr"><<a href="mailto:oleg.grenrus@iki.fi" target="_blank">oleg.grenrus@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So (as also pointed by Edward):<br>
<br>
- Some people are aware that decodeUtf8 is partial and rely on that behaviour<br>
- Some people aren’t aware, and think that decodeUtf8 is like `decodeUtf8With lenientDecode` or `decodeUtf8With ignore`.<br>
<br>
Then if we add a {-# DEPRECATED #-} warning on `decodeUtf8`, we should add variants for both use cases<br>
<br>
lenientDecodeUtf8 which is total, and<br>
unsafeDecodeUtf8 or strictDecodeUtf8, which is what decodeUtf8 does today.<br>
<br>
I’d like the new names, for convenience, `OnDecodeError` values would require a new module import.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Oleg<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> On 18 Aug 2016, at 14:40, Niklas Hambüchen <<a href="mailto:mail@nh2.me">mail@nh2.me</a>> wrote:<br>
><br>
> On 18/08/16 18:11, Oleg Grenrus wrote:<br>
>> Or should it be changed<br>
>><br>
>> - decodeUtf8 = decodeUtf8With strictDecode<br>
>> + decodeUtf8 = decodeUtf8With lenientDecode<br>
><br>
> I'd be very upset for that kind of a semantics change to sneak in under me.<br>
><br>
<br>
</div></div><br>______________________________<wbr>_________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br></div>