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

Safe HaskellSafe
LanguageHaskell2010

System.IO.Uniform.ByteString

Description

UniformIO on memory

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

The same as withByteStringIO', but returns an strict ByteString

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.