Transmitting Haskell values

Peter Simons simons at
Tue Oct 28 18:57:06 EST 2003

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.

Just for the sake of providing you with an alternative to read / show:
Take a look at HaXml [2]. This package provides means to read and
write Haskell data structures as XML files, what is about as platform
independent as you can get.



More information about the Glasgow-haskell-users mailing list