Proposal: Deprecate decodeUtf8

Bryan O'Sullivan bos at
Thu Aug 18 16:52:53 UTC 2016

On Thu, Aug 18, 2016 at 2:08 AM, Niklas Hamb├╝chen <mail at> wrote:

> I propose to add a deprecation pragma to the partial function
> Data.Text.decodeUtf8.

I'm not terribly open to adding a pragma for this, I'm afraid. Its
documentation already clearly states that it will throw an exception. I
understand that developers often fail to read documentation, but I don't
want to train them to also ignore compiler output because they get
permanent warnings that they can't suppress.

I do of course agree that in hindsight, it would have been best to provide
a safer function with this name.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list