<div dir="ltr">I've started up this discussion over at the hlint issue tracker too: <a href="https://github.com/ndmitchell/hlint/issues/1307">https://github.com/ndmitchell/hlint/issues/1307</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 15, 2021 at 11:39 AM Andreas Abel <<a href="mailto:andreas.abel@ifi.lmu.de">andreas.abel@ifi.lmu.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">+1 to promoting `readMaybe`.<br>
<br>
HLint could replace `read` by `fromMaybe undefined . readMaybe`. <br>
Partiality can be debugged better when it is in the application, rather <br>
than in the library.<br>
<br>
On 2021-10-15 10:05, Henning Thielemann wrote:<br>
> <br>
> On Thu, 14 Oct 2021, David Feuer wrote:<br>
> <br>
>> If it doesn't give a call stack, we can fix that. While I avoid using<br>
>> it myself, and I think it's much better to use (at least)<br>
>> Text.readMaybe, I'm not convinced that the breakage to existing<br>
>> educational material is worth the benefit of actually removing it.<br>
> <br>
> One can use HLint to flag uses of 'read'.<br>
> _______________________________________________<br>
> Libraries mailing list<br>
> <a href="mailto:Libraries@haskell.org" target="_blank">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-bin/mailman/listinfo/libraries</a><br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">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-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>