uniform-io-1.0.0.0: Uniform IO over files, network, anything.

Safe HaskellSafe
LanguageHaskell2010

System.IO.Uniform.ByteString

Synopsis

Documentation

data ByteStringIO Source

Wrapper that does UniformIO that reads and writes on the memory.

withByteStringIO :: ByteString -> (ByteStringIO -> IO a) -> IO (a, ByteString) Source

withByteStringIO input f Runs f with a ByteStringIO that has the given input, returns f's output and the ByteStringIO output.

withByteStringIO' :: ByteString -> (ByteStringIO -> IO a) -> IO (a, ByteString) Source

The same as withByteStringIO, but returns an strict ByteString