| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | wren@community.haskell.org |
Data.ByteString.Char8.Extras
Description
Some basic functions for quick hacking on ByteStrings.
- ifGetLine :: (ByteString -> IO ()) -> IO ()
- hIfGetLine :: Handle -> (ByteString -> IO ()) -> IO ()
- whileGetLine :: (ByteString -> IO ()) -> IO ()
- hWhileGetLine :: Handle -> (ByteString -> IO ()) -> IO ()
- recyclicate :: Int -> ByteString -> ByteString
Documentation
hIfGetLine :: Handle -> (ByteString -> IO ()) -> IO ()Source
whileGetLine :: (ByteString -> IO ()) -> IO ()Source
Loop over each line in a file
hWhileGetLine :: Handle -> (ByteString -> IO ()) -> IO ()Source
recyclicate :: Int -> ByteString -> ByteStringSource
cycle + replicate