Proposal: Add Text.Read.maybeRead :: Read a => String -> Maybe a
ndmitchell at gmail.com
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:
http://www-users.cs.york.ac.uk/~ndm/safe/ 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.
More information about the Libraries