Hi,
I don't know if this solves your problem, but maybe you should take a look at the Holumbus-Distribution package:
http://hackage.haskell.org/package/Holumbus-Distribution
I've build this library because I needed a simple way to transfer messages between two haskell processes or threads.The current code can be found under
Holumbus.Distribution.*
especially the DNode and the DStreamPort modules.
The modules located under Holumbus.Network are deprecated.
Best Regards,
Stefan