[Haskell-cafe] How to read safely?

minh thu noteed at gmail.com
Wed Jun 24 05:45:23 EDT 2009


2009/6/24 Magicloud Magiclouds <magicloud.magiclouds at gmail.com>:
> Hi,
>  Read often throws runtime errors, which breaks the robust of the
> problem. How to deal with it? Without lost too much proformance (so
> reads is a no).

Hi,

You might be interested in
http://hackage.haskell.org/packages/archive/safe/0.2/doc/html/Safe.html#v%3AreadMay.
Also, I think a similar question was asked not too long ago, so you
might want to get a look at the archive :
http://www.haskell.org/pipermail/haskell-cafe/

Cheers,
Thu


More information about the Haskell-Cafe mailing list