Proposal: Add Text.Read.maybeRead :: Read a => String -> Maybe a
Henning Thielemann
lemming at henning-thielemann.de
Fri Feb 8 02:59:55 EST 2008
On Thu, 7 Feb 2008, Iavor Diatchki wrote:
> Hello,
> I don't think that the function should be in an arbitrary monad
> because not all monads support failure, and the purpose of using this
> function is to take an action when a parse error occurs
I'm for the fixed Maybe type. I also think that 'maybeRead' is better than
'readMaybe' since the latter one suggests that it is about reading a value
of type 'Maybe'. (Though you can also argue the opposite way.)
More information about the Libraries
mailing list