[Haskell-cafe] How to make asynchronous I/O composable and safe?
Peter Simons
simons at cryp.to
Sat Jan 14 12:58:23 CET 2012
Hi Daniel,
> I've been trying to write networking code in Haskell too. I've also
> come to the conclusion that channels are the way to go.
isn't a tuple of input/output channels essentially the same as a stream
processor arrow? I found the example discussed in the "arrow paper" [1]
very enlightening in that regard. There also is a Haskell module that
extends the SP type to support monadic IO at [2].
Take care,
Peter
[1] http://www.ittc.ku.edu/Projects/SLDG/filing_cabinet/Hughes_Generalizing_Monads_to_Arrows.pdf
[2] http://hackage.haskell.org/package/streamproc
More information about the Haskell-Cafe
mailing list