On Thu, Jul 10, 2003 at 09:28:38AM +0200, Martin Sjgren wrote:
tor 2003-07-10 klockan 04.56 skrev Glynn Clements:
OTOH, existing implementations (at least GHC and Hugs) currently read
and write 8-bit binary, i.e. characters 0-255 get read and written
as-is and anything else breaks, and
Martin quoted Glynn:
OTOH, existing implementations (at least GHC and Hugs) currently read
and write 8-bit binary, i.e. characters 0-255 get read and written
as-is and anything else breaks, and changing that would probably
break a fair amount of existing code.
The binary library I posted to
George Russell wrote:
OTOH, existing implementations (at least GHC and Hugs) currently read
and write 8-bit binary, i.e. characters 0-255 get read and written
as-is and anything else breaks, and changing that would probably
break a fair amount of existing code.
The binary library
Glynn wrote (about my binary library, snipped):
This is similar to UTF-8; however, UTF-8 is a standard format which
can be read and written by a variety of other programs.
If we want a mechanism for encoding arbitrary Haskell strings as octet
lists, and we have a free choice as to the
tor 2003-07-10 klockan 04.56 skrev Glynn Clements:
OTOH, existing implementations (at least GHC and Hugs) currently read
and write 8-bit binary, i.e. characters 0-255 get read and written
as-is and anything else breaks, and changing that would probably
break a fair amount of existing code.
On Wednesday, 2003-07-09, 05:31, Glynn Clements wrote:
[...]
There isn't a standard mechanism for binary I/O.
NHC98 contains the York Binary library. Can someone tell me if this is
available for other Haskell systems? And didn't GHC also provide binary I/O?
However, a simple and fairly
There isn't a standard mechanism for binary I/O.
NHC98 contains the York Binary library. Can someone tell me if this is
available for other Haskell systems? And didn't GHC also provide binary I/O?
How does the GHC itself read/write binary data, since the interface
files (*.hi) produced by GHC
And didn't GHC also provide binary I/O?
http://www.haskell.org/ghc/docs/latest/html/base/Data.Array.IO.html#4
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 --
___
| Subject: Re: Reading/Writing Binary Data in Haskell
|
| On Wednesday, 2003-07-09, 05:31, Glynn Clements wrote:
| [...]
|
| There isn't a standard mechanism for binary I/O.
|
| NHC98 contains the York Binary library. Can someone tell me if this is
| available for other Haskell systems
Wolfgang Jeltsch wrote:
However, a simple and fairly generic mechanism for doing this is:
1. Read in a list of Chars with the standard I/O functions.
This will most likely cause problems under Windows. The reason is that the
standard I/O functions are intended for reading and writing
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christian Maeder
Sent: Wednesday, July 09, 2003 1:34 AM
To: The Haskell Mailing List
Subject: Re: Reading/Writing Binary Data in Haskell
There isn't a standard mechanism for binary I/O.
NHC98 contains
On Wednesday, 2003-07-09, 15:16, CEST, Glynn Clements wrote:
[...]
Both GHC and Hugs provide openFileEx, which allows files to be read in
binary mode (without EOL/EOF translations).
So we have portable binary I/O, don't we?
By the way, does one still read characters rather than bytes even if
Wolfgang Jeltsch wrote:
Both GHC and Hugs provide openFileEx, which allows files to be read in
binary mode (without EOL/EOF translations).
So we have portable binary I/O, don't we?
By the way, does one still read characters rather than bytes even if using
openFileEx?
openFileEx
Hello to all,
I'm recently working on doing some atmospheric modelling for my PhD
thesis work and I've been writing parallel implementations in Java,
Ruby, and Haskell. I picked up Haskell as part of the LoTY project and
was especially impressed by how expressive and clean the code is. I've
Gordon James Miller wrote:
1 - Is there yet a standard, or at least commonly supported by hugs and
ghc, method for dealing with binary data.
2 - If not, is there a standard library that is used to manipulate
binary data. I've seen some references to some implementations but
given that
15 matches
Mail list logo