Schema Composition for Reading Ciphered and Zipped XML Files
I have some xml files to read which are ciphered and zipped. One approach I considered is to write a Schema that takes a path and yields a stream of Uint8Array, then a schema that deciphers a stream of Uint8Array, then a schema that unzips a stream of uint8Array, then a schema that transforms a stream of Uint8Array into a stream of strings... and get my result by schema composition. Do you think this is a sensible approach (vs doing it without schema just by mapping streams) and, if so, how could I create a Schema.stream type? I tried to look into the AST stuff but I must confess I didn't understand it so well.
