Proposal: deprecate Prelude.read

David Feuer david.feuer at gmail.com
Fri Oct 15 03:46:15 UTC 2021


If it doesn't give a call stack, we can fix that. While I avoid using
it myself, and I think it's much better to use (at least)
Text.readMaybe, I'm not convinced that the breakage to existing
educational material is worth the benefit of actually removing it.

On Thu, Oct 14, 2021 at 10:31 PM Fumiaki Kinoshita <fumiexcel at gmail.com> wrote:
>
> It is a partial function that does not provide a call stack, and it's very slow too.
>
> I propose deprecating Prelude.read. Adding deprecation should not break anything substantial because Hackage rejects -Werror (application code using -Werror is likely to experience a lot more breakage anyway, and I'd say it's their fault if it fails to build due to a use of read along with -Werror).
>
> Of course those who still want to use Prelude.read can totally ignore warnings. I believe this proposal is not that controversial.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries


More information about the Libraries mailing list