Re: [Haskell-cafe] ByteString questions

2009-02-27 Thread Peter Verswyvelen
isn't this sufficient? might require some more Win32 bindings... http://msdn.microsoft.com/en-us/library/ms810467.aspx 2009/2/27 Galchin, Vasili vigalc...@gmail.com ;^) On Thu, Feb 26, 2009 at 11:15 PM, Brandon S. Allbery KF8NH allb...@ece.cmu.edu wrote: On 2009 Feb 26, at 23:58,

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Brandon S. Allbery KF8NH
On 2009 Feb 26, at 18:50, Galchin, Vasili wrote: 1) I noticed there is no open function in Data.ByteString. So when I call writeFile or readFile is there an implicit open? Correct; they're modeled after the writeFile and readFile functions in System.IO. 2) For both readFile and

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Brandon S. Allbery KF8NH
On 2009 Feb 26, at 23:16, Galchin, Vasili wrote: h but at work I am surreptitiously writing in Haskell to test firmware and the platform in Windows XP, Brandon. So if I want something other than the default port configuration I am out of luck? (the default is 9600, ??,??,??)? I

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Galchin, Vasili
Hi Brandon, I have forgotten about RS232 protocol. Can I just reads and writes from the RS232 device from an application to handle data? Or do I need to handle RS232 protocol events in the application? Thanks, Vasili On Thu, Feb 26, 2009 at 10:30 PM, Brandon S. Allbery KF8NH

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Brandon S. Allbery KF8NH
On 2009 Feb 26, at 23:45, Galchin, Vasili wrote: I have forgotten about RS232 protocol. Can I just reads and writes from the RS232 device from an application to handle data? Or do I need to handle RS232 protocol events in the application? Usually the OS handles protocol events,

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Galchin, Vasili
I already looked at MSDN examples and am not seriously enccouraged ;^( Vasili On Thu, Feb 26, 2009 at 10:51 PM, Brandon S. Allbery KF8NH allb...@ece.cmu.edu wrote: On 2009 Feb 26, at 23:45, Galchin, Vasili wrote: I have forgotten about RS232 protocol. Can I just reads and writes from

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Galchin, Vasili
i.e. protocol events seem to leak into an application = yuck On Thu, Feb 26, 2009 at 10:57 PM, Galchin, Vasili vigalc...@gmail.comwrote: I already looked at MSDN examples and am not seriously enccouraged ;^( Vasili On Thu, Feb 26, 2009 at 10:51 PM, Brandon S. Allbery KF8NH

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Brandon S. Allbery KF8NH
On 2009 Feb 26, at 23:58, Galchin, Vasili wrote: i.e. protocol events seem to leak into an application = yuck On Thu, Feb 26, 2009 at 10:57 PM, Galchin, Vasili vigalc...@gmail.com wrote: I already looked at MSDN examples and am not seriously enccouraged ;^( So, next stop: look for a

Re: [Haskell-cafe] ByteString questions

2009-02-26 Thread Galchin, Vasili
;^) On Thu, Feb 26, 2009 at 11:15 PM, Brandon S. Allbery KF8NH allb...@ece.cmu.edu wrote: On 2009 Feb 26, at 23:58, Galchin, Vasili wrote: i.e. protocol events seem to leak into an application = yuck On Thu, Feb 26, 2009 at 10:57 PM, Galchin, Vasili vigalc...@gmail.comwrote: I already