Safe Haskell | Safe-Infered |
---|
Bio.Util
Description
Utility module, with various useful stuff.
- lines, mylines :: ByteString -> [ByteString]
- splitWhen :: (ByteString -> Bool) -> [ByteString] -> [[ByteString]]
- countIO :: String -> String -> Int -> [a] -> IO [a]
- sequence' :: [IO a] -> IO [a]
Documentation
lines, mylines :: ByteString -> [ByteString]
Workaround, the current Data.ByteString.Lazy.Char8 contains a bug in lines
.
splitWhen :: (ByteString -> Bool) -> [ByteString] -> [[ByteString]]
Break a list of bytestrings on a predicate.