Proposal: Add Text.Read.maybeRead :: Read a => String -> Maybe a

Neil Mitchell ndmitchell at
Thu Feb 7 17:42:34 EST 2008


> This function is typically defined once per project. So its
> about time this safe variant of 'read' made it into the base.

It's also in the Safe library as readMay: and has been useful. Not
100% certain that maybe read is the right name as opposed to readMaybe
- given read/reads both have a read prefix.

(+0.7) agreement.



More information about the Libraries mailing list