[Haskell-cafe] ByteString questions

Galchin, Vasili vigalchin at gmail.com
Thu Feb 26 23:16:32 EST 2009

hmmmm .... 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, ??,??,??)?


On Thu, Feb 26, 2009 at 9:51 PM, Brandon S. Allbery KF8NH <
allbery at ece.cmu.edu> wrote:

> 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 writeFile, the first parameter is of type
> FilePath (which is of course alliased to just String). In any case, for
> Windows and POSIX OS's like Linux can read and write to a serial device like
> RS232 by specfiying the device path, e.g. /dev/tty01?
> Only if the default port configuration is sufficient.  You may need to use
> System.IO.Posix functions to set things up, then wrap in a Handle and pass
> to getContents.
> --
> brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
> system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
> electrical and computer engineering, carnegie mellon university    KF8NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090226/cd87ed25/attachment.htm

More information about the Haskell-Cafe mailing list