[Haskell-cafe] better error expression in IO function

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Jul 11 18:30:56 EDT 2007

On Jul 11, 2007, at 15:57 , brad clawsie wrote:

> i know the Either type can be used in such a case(?), but i've had  
> some
> problem locating a satisfactory example (if this is indeed
> appropriate)

You might want to look at MonadError (Control.Monad.Error), more  
specifically ErrorT layered on top of IO.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list