Proposal: Add readMaybe (and possibly readEither) to Prelude, make Haddocks for read more cautionary

Edward Kmett ekmett at gmail.com
Tue Jan 3 12:53:36 UTC 2017


On Mon, Jan 2, 2017 at 10:10 AM, Simon Jakobi <simon.jakobi at googlemail.com>
wrote:

> There are quite a few packages [1] that define their private version
> of readMaybe, but I don't think that these should be counted as
> arguments _against_ adding the function to Prelude.
>

Also, those in that list that happen to import it from Text.Read rather
than define it themselves would still work just fine.

-Edward


> Simon
>
> [1] https://github.com/search?l=Haskell&q=readMaybe&type=Code
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20170103/cbb0c717/attachment.html>


More information about the Libraries mailing list