| bio-0.4: A bioinformatics library | Source code | Contents | Index

Bio.Util

Description
Utility module, with various useful stuff.
Synopsis

lines :: ByteString -> [ByteString]
splitWhen :: (ByteString -> Bool) -> [ByteString] -> [[ByteString]]
countIO :: String -> String -> Int -> [a] -> IO [a]
sequence' :: [IO a] -> IO [a]
mylines :: ByteString -> [ByteString]

Documentation

lines :: ByteString -> [ByteString] | Source

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.
Produced by Haddock version 2.4.2