[Haskell-cafe] Problem about exception.

Brandon S Allbery KF8NH allbery.b at gmail.com
Thu Jan 27 04:20:18 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/26/11 22:13 , Magicloud Magiclouds wrote:
> Yes, the problem is that Exception cannot hold anything in it. Things
> like Either might work. I am thinking how to make it work with
> StateT....

That wasn't my point, but sure it can.  Go take a look at the IO exception,
and in particular (ioeGetErrorType).
(http://www.haskell.org/ghc/docs/latest/html/libraries/base-4.3.0.0/System-IO-Error.html#t:IOError)

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1A5HEACgkQIn7hlCsL25WajQCgnFlH0/k6W9I5qBvJSvrqSN0q
bXoAn1yFY5eh9lvxcpv4VTEpZSasOKoW
=3JhM
-----END PGP SIGNATURE-----



More information about the Haskell-Cafe mailing list