[Haskell] Re: Streams: the extensible I/O library

Bulat Ziganshin bulatz at HotPOP.com
Mon Feb 6 14:22:45 EST 2006


Hello Aaron,

Monday, February 06, 2006, 9:46:56 PM, you wrote:

>> ps: the library also includes two more layers - binary I/O and
>> serialization - on top of Streams. now i'm hardly working on
>> documenting these modules

AD> Disclaimer: I haven't looked at the code yet.

AD> Having binary I/O on top seems backwards.  Clearly text should be
AD> implemented in terms of binary, rather than the reverse.

the hierarchy is (i wrote the class names in parentheses):

buffer i/o        (BlockStream)
byte i/o          (ByteStream)
bit and word i/o  (BinaryStream)
value i/o         (Binary)

text i/o is sitting on top of byte i/o and included in the same
ByteStream class (in order to reduce implementation complexity)

so, i can say that there is just two branches, both based on the
vGetByte/vPutByte

-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell mailing list