Proposal: deprecate Prelude.read
andreas.abel at ifi.lmu.de
Fri Oct 15 08:37:47 UTC 2021
+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
More information about the Libraries