
Simon Marlow wrote:
Bayley, Alistair wrote:
From: libraries-bounces@haskell.org [mailto:libraries-bounces@haskell.org] On Behalf Of Ketil Malde
Somebody raised the question of reading a Content-type field, etc: would it be possible to "rewind" a handle after setting encoding? For Content-type fields, I suspect the header is usually limited to ASCII anyway, so adding decoding for subsequent text is probably sufficient.
I think this is relevant:
http://www.haskell.org/pipermail/haskell-cafe/2004-September/006801.html
We've talked a lot in the past about a stream-layering IO abstraction. I'd forgotten about Oleg's post, thanks.
Here are some others. There's the prototype I worked on:
http://www.haskell.org/~simonmar/io/System.IO.html
There's Bulat's Stream library, which is pretty complete:
http://haskell.org/haskellwiki/Library/Streams
And Takano Akio's version, in which he divides the type classes into smaller pieces. This is closer to the direction I thought we should go:
I should also mention John Goerzen's HVIO library: http://hackage.haskell.org/packages/archive/MissingH/1.0.0/doc/html/System-I... Cheers, Simon