[Haskell-beginners] 'read' throws; why not maybe or either?

David McBride toad3k at gmail.com
Sun Nov 24 22:43:50 UTC 2013


You might be interested in the 'safe' package.  It has a function in it
called readMay, along with a lot of other useful minor omissions from
prelude. http://hackage.haskell.org/package/Safe-0.1/docs/Safe.html


On Sun, Nov 24, 2013 at 4:49 PM, Patrick Redmond <plredmond at gmail.com>wrote:

> Is there a variation of 'read' which uses Maybe or Either to handle
> failure instead of an exception?
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131124/f08fc863/attachment.html>


More information about the Beginners mailing list