Text I/O library proposal, first draft

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
Sat, 2 Aug 2003 15:43:30 +0200


Dnia pią 1. sierpnia 2003 00:35, Ben Rudiak-Gould napisał:

> type BlockRecoder from to =
>   Ptr from -> BlockLength -> Ptr to -> BlockLength
>    -> IO (BlockLength,BlockLength)

What should decoders do on malformed data?

> type TextEncoder = BlockRecoder Word32 Octet
> type TextDecoder = BlockRecoder Octet Word32

I would use Char insetad of Word32.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/