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

Simon Jakobi simon.jakobi at
Wed Jan 4 07:19:02 UTC 2017

2017-01-04 4:59 GMT+01:00 David Menendez <dave at>:
> Do a lot of hobbyists use read? I’m honestly curious: I keep being told that
> Read is only useful for parsing the output of Show, but I can’t imagine that
> comes up a lot. I guess I could see being useful for minimal-effort
> persistence, but parsers with no capacity for error messages make me
> uncomfortable.

I believe that read is often used in Project Euler-style problems and
programming challenges in order to parse numbers from input files.

More information about the Libraries mailing list