[Haskell-cafe] Control.Exception base-3/base-4 woes

2009-09-11 Thread Neil Brown
Hi, In my CHP library I need to do some exception catching. I want the library to work on GHC 6.8 (with base-3 -- this is the current version in Ubuntu Hardy and Jaunty, for example) and GHC 6.10 (which comes with base-4). But base-3 and base-4 need different code for exception catching

Re: [Haskell-cafe] Control.Exception base-3/base-4 woes

2009-09-11 Thread David Menendez
On Fri, Sep 11, 2009 at 11:26 AM, Neil Brown nc...@kent.ac.uk wrote: Can anyone tell me how to fix this?  I don't think that changing to always use Control.Exception would fix this, because I need to give a different type for catch in base-3 to base-4, so there's still the incompatibility to

RE: [Haskell-cafe] Control.Exception base-3/base-4 woes

2009-09-11 Thread Sittampalam, Ganesh
Neil Brown wrote: Can anyone tell me how to fix this? I don't think that changing to always use Control.Exception would fix this, because I need to give a different type for catch in base-3 to base-4, so there's still the incompatibility to be dealt with.

Re: [Haskell-cafe] Control.Exception base-3/base-4 woes

2009-09-11 Thread Bulat Ziganshin
Hello Neil, Friday, September 11, 2009, 7:26:47 PM, you wrote: i suggest you to import extensible-exceptions package instead - it's available even for ghc 6.8. alternatively, you may import old-exceptions package (or something like this). trying to develop code compatible with both versions of

Re: [Haskell-cafe] Control.Exception base-3/base-4 woes

2009-09-11 Thread Antoine Latter
On Fri, Sep 11, 2009 at 10:42 AM, David Menendezd...@zednenem.com wrote: On Fri, Sep 11, 2009 at 11:26 AM, Neil Brown nc...@kent.ac.uk wrote: Can anyone tell me how to fix this?  I don't think that changing to always use Control.Exception would fix this, because I need to give a different