Re: [C2hs] Re: [Haskell] building c2hs on winows

2006-07-06 Thread Manuel M T Chakravarty
Duncan wrote, > > > Actually it turns out the c2hs is doing a lot of things that are not > > > portable to windows. It'll need some effort to fix. Any helpers? > > > > What else apart from pathname separators? It'd be great if somebody > > could look into that. > > The use of configure(.in) is

[Haskell] Re: rawSystem unpredictable with signals

2006-07-06 Thread John Goerzen
On Thu, Jul 06, 2006 at 11:42:13AM +0100, Simon Marlow wrote: > Would you like to submit a bug report on this, I'll try to get to it > before GHC 6.6. I can also send you the code that works for me on my own reimplementation. > The problem with this is that not all platforms are POSIX, and > Sy

Re: [Haskell] rawSystem unpredictable with signals

2006-07-06 Thread Mathew Mills
Ctrl-C sends signals to the entire process-group, in which case various race conditions may result. Have your experimented by killing just the child process with 'kill -INT '? On Thursday, July 06, 2006, at 11:15AM, John Goerzen <[EMAIL PROTECTED]> wrote: >On Thu, Jul 06, 2006 at 04:09:43PM +

Re: [Haskell] rawSystem unpredictable with signals

2006-07-06 Thread John Goerzen
On Thu, Jul 06, 2006 at 04:09:43PM +0200, Udo Stenzel wrote: > > 1) rawSystem returns ExitSuccess > > > > or > > > > 2) rawSystem raises an IOError saying the child terminated with a > > signal > > > > I am totally at a loss as to explain this difference in behavior. I > > would prefer it

Re: [C2hs] Re: [Haskell] building c2hs on winows

2006-07-06 Thread Duncan Coutts
On Thu, 2006-07-06 at 11:35 -0400, Manuel M T Chakravarty wrote: > Duncan Coutts: > > On Thu, 2006-07-06 at 10:30 +0100, Duncan Coutts wrote: > > > On Wed, 2006-07-05 at 20:58 -0700, Anatoly Yakovenko wrote: > > > > On 7/4/06, Arjan Oosting <[EMAIL PROTECTED]> wrote: > > > > > Op di, 04-07-2006 te

Re: [C2hs] Re: [Haskell] building c2hs on winows

2006-07-06 Thread Manuel M T Chakravarty
Duncan Coutts: > On Thu, 2006-07-06 at 10:30 +0100, Duncan Coutts wrote: > > On Wed, 2006-07-05 at 20:58 -0700, Anatoly Yakovenko wrote: > > > On 7/4/06, Arjan Oosting <[EMAIL PROTECTED]> wrote: > > > > Op di, 04-07-2006 te 09:09 -0700, schreef Anatoly Yakovenko: > > > > > I can't get c2hs to build

Re: [Haskell] rawSystem unpredictable with signals

2006-07-06 Thread Udo Stenzel
John Goerzen wrote: > When I hit Ctrl-C while the child process is running, sometimes: > > 1) rawSystem returns ExitSuccess > > or > > 2) rawSystem raises an IOError saying the child terminated with a > signal > > I am totally at a loss as to explain this difference in behavior. I > woul

Re: [C2hs] Re: [Haskell] building c2hs on winows

2006-07-06 Thread Duncan Coutts
On Thu, 2006-07-06 at 10:30 +0100, Duncan Coutts wrote: > On Wed, 2006-07-05 at 20:58 -0700, Anatoly Yakovenko wrote: > > On 7/4/06, Arjan Oosting <[EMAIL PROTECTED]> wrote: > > > Op di, 04-07-2006 te 09:09 -0700, schreef Anatoly Yakovenko: > > > > I can't get c2hs to build on windows with ghc-6.4.

[Haskell] Re: rawSystem unpredictable with signals

2006-07-06 Thread Simon Marlow
John Goerzen wrote: I'm using System.Cmd.rawSystem in a program and have noticed a mysterious flaw: When I hit Ctrl-C while the child process is running, sometimes: 1) rawSystem returns ExitSuccess or 2) rawSystem raises an IOError saying the child terminated with a signal I am totall

Re: [Haskell] building c2hs on winows

2006-07-06 Thread Duncan Coutts
On Wed, 2006-07-05 at 20:58 -0700, Anatoly Yakovenko wrote: > On 7/4/06, Arjan Oosting <[EMAIL PROTECTED]> wrote: > > Op di, 04-07-2006 te 09:09 -0700, schreef Anatoly Yakovenko: > > > I can't get c2hs to build on windows with ghc-6.4.2 > > > > I get a little farther, but it still doesn't work: Ac