bio-0.5.3: A bioinformatics library

Safe HaskellNone

Bio.Util

Description

Utility module, with various useful stuff.

Synopsis

Documentation

lines :: ByteString -> [ByteString]Source

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

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 sequence in Control.Monad, needed by countIO above.

mylines :: ByteString -> [ByteString]Source

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