[Haskell-cafe] What is the surefire way to handle all exceptions and make sure the program doesn't fail?

Bardur Arantsson spam at scientician.net
Tue Jul 17 22:36:37 CEST 2012

On 07/17/2012 10:17 PM, Christopher Done wrote:
> On 17 July 2012 22:10, Bardur Arantsson <spam at scientician.net> wrote:
>> On 07/17/2012 08:34 AM, Yifan Yu wrote:
>>> I can only tell if I browse the source code. So the question is, how can I
>>> determine all the exceptions that can be thrown by a given function?
>> Look at its source.
> Not sure that's the most productive comment. ;-P

Well, it's either that or the documentation, and if you want to be
*really* sure...

(I did realize that the OP did mention looking at the source, I just
thought I'd confirm. I hope it didn't come out snarky -- I certainly
didn't intend it to.)


More information about the Haskell-Cafe mailing list