Re: Proposal: deprecate Prelude.read

Andreas Abel <[email protected]> Fri, 15 Oct 2021 10:37:47 +0200
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <[email protected]>
+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
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
_______________________________________________
Libraries mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries