Hi, out of curiosity I have taken a look at https://github.com/choener/BiobaseFasta/blob/master/Biobase/Fasta/Import.hs thinking about how this would look like using conduit.
How does one implement "unfoldConvStream" in conduit? unfoldConvStream :: mapping with state from xs to ys unfoldConvStream go state where go curState = do -- do stuff return (newState, result of mapping) Right now, I'd assume to need a StateT which carries the state? == explanation: I carry fasta headers and window positions in a state, so that very large fasta files can be worked on in constant space. == Gruss, Christian
pgpTABPCKLiKn.pgp
Description: PGP signature
_______________________________________________ Biohaskell mailing list Biohaskell@biohaskell.org http://malde.org/cgi-bin/mailman/listinfo/biohaskell