BiobaseFasta- conduit-based FASTA parser

Safe HaskellNone




data Event Source

An event is either a FASTA header or a part of a FASTA data stream, chunked into user-defineable pieces. If there is no more input, we are Done. But we are only Done if there was some input in the first place!


renderEvents :: Monad m => Int -> Conduit Event m ByteStringSource

Render from Events into ByteStrings. cols is the number of characters after which a newline is introduced into the stream. Such newlines are introduced only into Data events.