Magnus Therning <[EMAIL PROTECTED]> writes: > Thanks for all the excellent answers to my original question. Somehow > it feels like I advanced and got one level closer to a black belt in > Haskell due to this; I've now legitimately used a function from > System.IO.Unsafe :-) > > I tried to document it all: http://therning.org/magnus/archives/249
I wonder whether the unsafeInterleaved solution is guarranteed to work as per your specification. Couldn't it read a character, write it, then read three characters, write two, read one more then write two again, and so on? It has to catch up at the end, but needn't stay synchronized during the process, perhaps... -- Thanks, Feri. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe