2005/12/8, Bulat Ziganshin <bulatz@hotpop.com>:
imho, it's better to start from NewBinary library and add features of SerTH to it. i can make TH support. btw, where i can download NewBinary version about you talk? there is many different variations.
Thanks. Your help will be appreciable. I am talking about JeremyShaw's update of ?HalDaume's library: http://www.n-heptane.com/nhlab/repos/NewBinary/
one disadvantage of original Binary library as well as all its derivatives is support only for memory- and Handle-oriented streams. my library instead accepts any stream, you just provide functions to read/write when create Binary object. i propose to add this facility too, smth like:
createBinary readF writeF = return Binary {readF=readF,writeF=writeF}
I think the right abstraction should use carefully designed type classes like in Simon Marlow's NewIO library. Cheer