Transmitting Haskell values
Glynn Clements
glynn.clements at virgin.net
Wed Oct 29 06:45:14 EST 2003
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 <glynn.clements at virgin.net>
More information about the Glasgow-haskell-users
mailing list