
29 Oct
2003
29 Oct
'03
1:45 a.m.
Peter Simons wrote:
Joachim Durchholz writes:
What sent me first into deep confusion is that I found all of {Text,GHC}.{Read,Show} first, and the Read classes marked as "nonportable GHC extensions".
Then you will surely love the Foreign.* hierarchy, most notably Foreign.Storable. If you want to do binary I/O within "standard" Haskell, this is the place to look at. I found [1] to be a pretty good introduction to the subject.
The problem with Storable is that the representation is
architecture-specific. It isn't suitable for implementing a
"commodity" protocol which can be used for communication between
different architectures.
--
Glynn Clements