Proposal: deprecate Prelude.read
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:
On Fri, Oct 15, 2021 at 11:39 AM Andreas Abel <andreas.abel at ifi.lmu.de>
> +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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries