[Haskell] Better Exception Handling
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Nov 23 18:00:55 EST 2004
Ben Rudiak-Gould <Benjamin.Rudiak-Gould at cl.cam.ac.uk> writes:
> The intended semantics is
>
> / Nothing if x is a set of exceptions
> exceptionToMaybe x = | _|_ if x is _|_
> \ Just x otherwise
What is
exceptionToMaybe (f 0 + error "x")
where
f x = f x
?
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Haskell
mailing list