Re: Proposal: deprecate Prelude.read
Georgi Lyubenov <[email protected]> Fri, 15 Oct 2021 12:02:24 +0300
| Newsgroups | gmane.comp.lang.haskell.libraries |
|---|---|
| Message-ID | <CABT0e9qBsfWWvMypXk3m6EyTBPZ-=zXZJJ=+624uovBKAPzQuQ@mail.gmail.com> |
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 <[email protected]> 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 > > [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 > _______________________________________________ Libraries mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries