Re: [Haskell-cafe] Taking Exception to Exceptions

2009-01-08 Thread Henning Thielemann
Immanuel Litzroth schrieb: > Anyway, there is one more problem I have related to exceptions that is > about forcing strictness. It relates to option parsing. I have an option -t > that says which track from a file of tracks to print. So I go > > data Flags = TrackNumber !Int deriving(Read, Show,

Re: [Haskell-cafe] Taking Exception to Exceptions

2009-01-08 Thread Max Rabkin
On Thu, Jan 8, 2009 at 6:36 AM, Cristiano Paris wrote: > This avoids the possibility of having an unwanted/unknown behavior > from the run-time stack (for example, having the web server returning > a generic 500 Internal Server error report, filled with every sort of > goods a cracker would be hap

Re: [Haskell-cafe] Taking Exception to Exceptions

2009-01-08 Thread Immanuel Litzroth
> > > I recommend this paper for info, it's very easy to follow: > > http://www.haskell.org/~simonmar/papers/ext-exceptions.pdf > > Austin > That paper cleared up most of my issues and it is amazing that it is not amongst the papers that

Re: [Haskell-cafe] Taking Exception to Exceptions

2009-01-08 Thread Cristiano Paris
On Thu, Jan 8, 2009 at 12:32 AM, Austin Seipp wrote: > Excerpts from Immanuel Litzroth's message of Wed Jan 07 16:53:30 -0600 2009: > ... >> I am little amazed that I cannot get catch, try or mapException to work >> without telling them which exceptions I want to catch. >> What is the rationale be

Re: [Haskell-cafe] Taking Exception to Exceptions

2009-01-07 Thread Austin Seipp
Excerpts from Immanuel Litzroth's message of Wed Jan 07 16:53:30 -0600 2009: > I'm trying to use the new (for me at least) extensible exceptions and > I am little amazed that I cannot get catch, try or mapException to work > without telling them which exceptions I want to catch. > What is the ratio

[Haskell-cafe] Taking Exception to Exceptions

2009-01-07 Thread Immanuel Litzroth
I'm trying to use the new (for me at least) extensible exceptions and I am little amazed that I cannot get catch, try or mapException to work without telling them which exceptions I want to catch. What is the rationale behind this? How does bracket manage to catch all exceptions? What should onExce