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

2007-02-13 Thread Simon Marlow
Duncan Coutts wrote: 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

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

2007-02-13 Thread Krasimir Angelov
On 2/13/07, Simon Marlow [EMAIL PROTECTED] wrote: Sounds like a good idea. You need to look at rts/RtsMessages.c, in particular rtsErrorMsgFn(), which currently has cases for GUI and non-GUI. I guess it really should have 3 cases: GUI, console, and non-GUI. The trick here is how to find

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

2007-02-13 Thread Simon Marlow
Krasimir Angelov wrote: On 2/13/07, Simon Marlow [EMAIL PROTECTED] wrote: Sounds like a good idea. You need to look at rts/RtsMessages.c, in particular rtsErrorMsgFn(), which currently has cases for GUI and non-GUI. I guess it really should have 3 cases: GUI, console, and non-GUI. The

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

2007-02-09 Thread John Ky
Sorry, I should clarify. I am writing about applications compiled with GHC. -John On 2/10/07, John Ky [EMAIL PROTECTED] 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