Control.Exception

2008-10-07 Thread Johannes Waldmann
with 6.10, the following does not typecheck: foo `Control.Exception.catch` \ _ - return bar Ambiguous type variable `e' in the constraint: `Control.Exception.Exception e' It is probably bad programming style anyway but what is the workaround? I found some references (in list emails) to

Re: Control.Exception

2008-10-07 Thread Thomas Schilling
2008/10/7 Johannes Waldmann [EMAIL PROTECTED]: with 6.10, the following does not typecheck: foo `Control.Exception.catch` \ _ - return bar Ambiguous type variable `e' in the constraint: `Control.Exception.Exception e' catch \(e :: SomeException) - ... This requires language

Re: System.Process.runInteractiveCommand, exit_group ()

2008-10-07 Thread Simon Marlow
Johannes Waldmann wrote: Solved - exit_group() wasn't the problem. My wrapper program silently died from SIGPIPE. This is something we changed in GHC 6.10.1, incedentally. Now SIGPIPE doesn't silently exit the program, and it will get an exception instead. Cheers, Simon

ghc-6.10.0.20081005 binary refers to (non existent?) libedit.so.0

2008-10-07 Thread Johannes Waldmann
Dear all, I tried to install the binary snapshot on Debian (etch) x86_64 and got: /usr/local/lib/ghc-6.10.0.20081005/ghc: error while loading shared libraries: libedit.so.0: cannot open shared object file: No such file or directory I do have libedit (I think): lrwxrwxrwx 1 root root 14

Re: Control.Exception

2008-10-07 Thread Johannes Waldmann
catch \(e :: SomeException) - ... So, this changes the API (from 6.8 to 6.10)? I see there is Control.OldException (providing the old catch) but that still does not help me if I want my code compile with both 6.8 and 6.10. Is there some version of catch that works both ways? best regards,

Re: Control.Exception

2008-10-07 Thread Duncan Coutts
On Tue, 2008-10-07 at 20:50 +0200, Johannes Waldmann wrote: catch \(e :: SomeException) - ... So, this changes the API (from 6.8 to 6.10)? I see there is Control.OldException (providing the old catch) but that still does not help me if I want my code compile with both 6.8 and 6.10. Is

Re: Control.Exception

2008-10-07 Thread Ian Lynagh
On Tue, Oct 07, 2008 at 12:54:55PM -0700, Duncan Coutts wrote: On Tue, 2008-10-07 at 20:50 +0200, Johannes Waldmann wrote: catch \(e :: SomeException) - ... So, this changes the API (from 6.8 to 6.10)? I see there is Control.OldException (providing the old catch) but that still

More DPH

2008-10-07 Thread Austin Seipp
Hi, I've been playing with DPH more; this time I've taken the Parallel Strategies binary-trees benchmark and converted it to use DPH. The results are here: http://haskell.org/haskellwiki/Shootout/Parallel/BinaryTreesDPH I haven't yet got anybody to test it on a 4/8 core machine, but on my