Proposal: Add readMaybe (and possibly readEither) to Prelude, make Haddocks for read more cautionary
Simon Jakobi
simon.jakobi at googlemail.com
Wed Dec 28 07:47:03 UTC 2016
2016-12-28 5:46 GMT+01:00 David Feuer <david.feuer at gmail.com>:
> > > If there's
> > any uncertainty w.r.t. the shape of the input, readMaybe or readEither
> > should be used instead.
>
>
> I would put it more strongly:
>
> read should be applied only to strings that are known to have been produced
> by methods of the Show class.
I agree, that's more clear.
More information about the Libraries
mailing list