iteratee Fwd: darcs patch: bump version range dependency for 'failure'

Antoine Latter aslatter at gmail.com
Mon Aug 16 21:37:56 EDT 2010


Sorry for the spam - the last time I tried to forward this is really
didn't work :-/


---------- Forwarded message ----------
From: Antoine Latter <aslatter at gmail.com>
Date: Mon, Aug 16, 2010 at 8:01 PM
Subject: Re: iteratee darcs patch: bump version range dependency for 'failure'
To: John Lato <jwlato at gmail.com>


Hmm ... since NothngException is an exception that can be legitimately
thrown (by calling 'try Nothing :: IO a' I think) maybe the better
approach would be to catch an internal type that nothing can throw -
and then drop the 'failure' dependency.

I'll put something together tonight and you can tell me what you think.

Antoine

On Aug 16, 2010 5:46 PM, "John Lato" <jwlato at gmail.com> wrote:

NothingException should never be thrown.  I wanted to define
"enumFromCallback" using enumFromCallbackCatch and needed to supply a
default handler.  In particular, the default handler needs to
instantiate a concrete exception type and also not actually catch any
real exceptions.  Using "NothingException" seemed the cleanest route;
the only other real option is to catch SomeException and re-throw it.

Iteratee could define NothingException internally, but I like the
failure package so I just used it from there to avoid name conflicts.

John

On Mon, Aug 16, 2010 at 11:25 PM, Antoine Latter <aslatter at gmail.com> wrote:
>
> Yeah, I was tryin...



More information about the Iteratee mailing list