Proposal: deprecate Prelude.read

Georgi Lyubenov godzbanebane at gmail.com
Fri Oct 15 09:02:24 UTC 2021


I've started up this discussion over at the hlint issue tracker too:
https://github.com/ndmitchell/hlint/issues/1307

On Fri, Oct 15, 2021 at 11:39 AM Andreas Abel <andreas.abel at ifi.lmu.de>
wrote:

> +1 to promoting `readMaybe`.
>
> HLint could replace `read` by `fromMaybe undefined . readMaybe`.
> Partiality can be debugged better when it is in the application, rather
> than in the library.
>
> On 2021-10-15 10:05, Henning Thielemann wrote:
> >
> > On Thu, 14 Oct 2021, David Feuer wrote:
> >
> >> 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.
> >
> > One can use HLint to flag uses of 'read'.
> > _______________________________________________
> > Libraries mailing list
> > Libraries at haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20211015/733d9c47/attachment.html>


More information about the Libraries mailing list