{-# LANGUAGE NoImplicitPrelude #-}
module RIO.ByteString.Lazy
(
Data.ByteString.Lazy.ByteString
, Data.ByteString.Lazy.empty
, Data.ByteString.Lazy.singleton
, Data.ByteString.Lazy.pack
, Data.ByteString.Lazy.unpack
, Data.ByteString.Lazy.fromStrict
, Data.ByteString.Lazy.toStrict
, Data.ByteString.Lazy.fromChunks
, Data.ByteString.Lazy.toChunks
, Data.ByteString.Lazy.foldrChunks
, Data.ByteString.Lazy.foldlChunks
, Data.ByteString.Lazy.cons
, Data.ByteString.Lazy.cons'
, Data.ByteString.Lazy.snoc
, Data.ByteString.Lazy.append
, Data.ByteString.Lazy.uncons
, Data.ByteString.Lazy.unsnoc
, Data.ByteString.Lazy.null
, Data.ByteString.Lazy.length
, Data.ByteString.Lazy.map
, Data.ByteString.Lazy.reverse
, Data.ByteString.Lazy.intersperse
, Data.ByteString.Lazy.intercalate
, Data.ByteString.Lazy.transpose
, Data.ByteString.Lazy.foldl
, Data.ByteString.Lazy.foldl'
, Data.ByteString.Lazy.foldr
, Data.ByteString.Lazy.concat
, Data.ByteString.Lazy.concatMap
, Data.ByteString.Lazy.any
, Data.ByteString.Lazy.all
, Data.ByteString.Lazy.scanl
, Data.ByteString.Lazy.mapAccumL
, Data.ByteString.Lazy.mapAccumR
, Data.ByteString.Lazy.repeat
, Data.ByteString.Lazy.replicate
, Data.ByteString.Lazy.cycle
, Data.ByteString.Lazy.iterate
, Data.ByteString.Lazy.unfoldr
, Data.ByteString.Lazy.take
, Data.ByteString.Lazy.drop
, Data.ByteString.Lazy.splitAt
, Data.ByteString.Lazy.takeWhile
, Data.ByteString.Lazy.dropWhile
, Data.ByteString.Lazy.span
, Data.ByteString.Lazy.break
, Data.ByteString.Lazy.group
, Data.ByteString.Lazy.groupBy
, Data.ByteString.Lazy.inits
, Data.ByteString.Lazy.tails
, Data.ByteString.Lazy.stripPrefix
, Data.ByteString.Lazy.stripSuffix
, Data.ByteString.Lazy.split
, Data.ByteString.Lazy.splitWith
, Data.ByteString.Lazy.isPrefixOf
, Data.ByteString.Lazy.isSuffixOf
, Data.ByteString.Lazy.elem
, Data.ByteString.Lazy.notElem
, Data.ByteString.Lazy.find
, Data.ByteString.Lazy.filter
, Data.ByteString.Lazy.partition
, Data.ByteString.Lazy.index
, Data.ByteString.Lazy.elemIndex
, Data.ByteString.Lazy.elemIndexEnd
, Data.ByteString.Lazy.elemIndices
, Data.ByteString.Lazy.findIndex
, Data.ByteString.Lazy.findIndices
, Data.ByteString.Lazy.count
, Data.ByteString.Lazy.zip
, Data.ByteString.Lazy.zipWith
, Data.ByteString.Lazy.unzip
, Data.ByteString.Lazy.copy
, getContents
, putStr
, putStrLn
, interact
, readFile
, writeFile
, appendFile
, hGetContents
, hGet
, hGetNonBlocking
, hPut
, hPutNonBlocking
, hPutStr
) where
import Data.ByteString.Lazy hiding
(
getContents
, putStr
, putStrLn
, interact
, readFile
, writeFile
, appendFile
, hGetContents
, hGet
, hGetNonBlocking
, hPut
, hPutNonBlocking
, hPutStr
)
import qualified Data.ByteString.Lazy
import qualified Data.ByteString.Lazy.Char8
import RIO
getContents :: MonadIO m => m LByteString
getContents = liftIO Data.ByteString.Lazy.getContents
putStr :: MonadIO m => LByteString -> m ()
putStr = liftIO . Data.ByteString.Lazy.putStr
putStrLn :: MonadIO m => LByteString -> m ()
putStrLn = liftIO . Data.ByteString.Lazy.Char8.putStrLn
interact :: MonadIO m => (LByteString -> LByteString) -> m ()
interact = liftIO . Data.ByteString.Lazy.interact
readFile :: MonadIO m => FilePath -> m LByteString
readFile = liftIO . Data.ByteString.Lazy.readFile
writeFile :: MonadIO m => FilePath -> LByteString -> m ()
writeFile fp contents =
liftIO $ Data.ByteString.Lazy.writeFile fp contents
appendFile :: MonadIO m => FilePath -> LByteString -> m ()
appendFile fp = liftIO . Data.ByteString.Lazy.appendFile fp
hGet :: MonadIO m => Handle -> Int -> m LByteString
hGet handle' count' = liftIO $ Data.ByteString.Lazy.hGet handle' count'
hGetContents :: MonadIO m => Handle -> m LByteString
hGetContents = liftIO . Data.ByteString.Lazy.hGetContents
hGetNonBlocking :: MonadIO m => Handle -> Int -> m LByteString
hGetNonBlocking h = liftIO . Data.ByteString.Lazy.hGetNonBlocking h
hPut :: MonadIO m => Handle -> LByteString -> m ()
hPut h = liftIO . Data.ByteString.Lazy.hPut h
hPutNonBlocking :: MonadIO m => Handle -> LByteString -> m LByteString
hPutNonBlocking h = liftIO . Data.ByteString.Lazy.hPutNonBlocking h
hPutStr :: MonadIO m => Handle -> LByteString -> m ()
hPutStr h = liftIO . Data.ByteString.Lazy.hPutStr h