RE: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-19 Thread Simon Peyton-Jones
| Coutts | Sent: 10 February 2007 11:57 | To: John Ky | Cc: Haskell Cafe | Subject: Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console | | On Sat, 2007-02-10 at 09:32 +1100, John Ky wrote: | Hi, | | I noticed on Windows that when I use IO functions that write to stdout | when

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-11 Thread Paul Moore
On 09/02/07, Paul Moore [EMAIL PROTECTED] wrote: It probably wouldn't be hard to write a reasonably general wrapper for this, but it's a bit late now so I'll leave that as an exercise :-) Sigh. I tried to set this up (using a little external C routine to do the API grunt work) and it doesn't

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-11 Thread Duncan Coutts
On Sat, 2007-02-10 at 23:46 +1100, John Ky wrote: Hi Duncan, Thanks for your comments. In the context of a haskell process running as a Windows service, a message box is useless, because Haskell services do not have a GUI and cannot interact with the desktop. Good point. Perhaps you can

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-11 Thread Neil Mitchell
Hi Good point. Perhaps you can persuade the people who look after GHC on win32 to have it use the Windows debug log service for exception messages like that when there's no GUI available. Of course if you can code up and submit such a patch yourself then even better. Does anyone read that?

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-11 Thread Duncan Coutts
On Sun, 2007-02-11 at 17:18 +, Neil Mitchell wrote: Hi Good point. Perhaps you can persuade the people who look after GHC on win32 to have it use the Windows debug log service for exception messages like that when there's no GUI available. Of course if you can code up and submit

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-11 Thread John Ky
Hi Paul, Can I have your code that doesn't work? I want to fiddle with it a bit. Thanks -John On 2/12/07, Paul Moore [EMAIL PROTECTED] wrote: On 09/02/07, Paul Moore [EMAIL PROTECTED] wrote: It probably wouldn't be hard to write a reasonably general wrapper for this, but it's a bit late

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-10 Thread Duncan Coutts
On Sat, 2007-02-10 at 09:32 +1100, John Ky wrote: Hi, I noticed on Windows that when I use IO functions that write to stdout when the process is lacking a console, those functions throw an IOError. I'm not sure if this also occurs for stderr because I haven't tried it. Some classes of

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-10 Thread John Ky
Hi Duncan, Thanks for your comments. In the context of a haskell process running as a Windows service, a message box is useless, because Haskell services do not have a GUI and cannot interact with the desktop. -John ___ Haskell-Cafe mailing list

[Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-09 Thread John Ky
Hi, I noticed on Windows that when I use IO functions that write to stdout when the process is lacking a console, those functions throw an IOError. I'm not sure if this also occurs for stderr because I haven't tried it. Some classes of processes are created without a console because they never

Re: [Haskell-cafe] GHC throws IOError on Win32 when there is no console

2007-02-09 Thread Paul Moore
On 09/02/07, John Ky [EMAIL PROTECTED] wrote: I noticed on Windows that when I use IO functions that write to stdout when the process is lacking a console, those functions throw an IOError. I'm not sure if this also occurs for stderr because I haven't tried it. This is Windows standard