bio-0.4.7: A bioinformatics library

Bio.Util

Description

Utility module, with various useful stuff.

Synopsis

Documentation

splitWhen :: (ByteString -> Bool) -> [ByteString] -> [[ByteString]]Source

Break a list of bytestrings on a predicate.

countIO :: String -> String -> Int -> [a] -> IO [a]Source

Output (to stderr) progress while evaluating a lazy list. Useful for generating output while (conceptually, at least) in pure code

sequence' :: [IO a] -> IO [a]Source

A lazier version of Control.Monad.sequence in Control.Monad, needed by countIO above.

mylines :: ByteString -> [ByteString]Source

Workaround, the current Data.ByteString.Lazy.Char8 contains a bug in Data.ByteString.Lazy.Char8.lines.