Re: Re[2]: [Haskell-cafe] Tricky exception handling

2005-12-13 Thread Joel Reymont

Yes, you are right. I will make the change.

On Dec 13, 2005, at 9:28 AM, Bulat Ziganshin wrote:


yes, you are muistaken! :)  this code will repeat permanently until
exception arrived. at this time it will process exception handler and
then exit the whole function. you musr reread docs. hmm, actually this
is the way exception handling works in ANY language


handle (...)
  repeat_forever
do cmd <- read h ssl
   post $! Cmd $! cmd


--
http://wagerlabs.com/





___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re[2]: [Haskell-cafe] Tricky exception handling

2005-12-13 Thread Bulat Ziganshin
Hello Joel,

Monday, December 12, 2005, 7:26:23 PM, you wrote:

JR> Unless I'm mistaken, the code above will run forever and will not
JR> exit on exception.

yes, you are muistaken! :)  this code will repeat permanently until
exception arrived. at this time it will process exception handler and
then exit the whole function. you musr reread docs. hmm, actually this
is the way exception handling works in ANY language

>> handle (...)
>>   repeat_forever
>> do cmd <- read h ssl
>>post $! Cmd $! cmd

JR> --
JR> http://wagerlabs.com/







-- 
Best regards,
 Bulatmailto:[EMAIL PROTECTED]



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe