Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
UniformIO on memory
- data ByteStringIO
- withByteStringIO :: ByteString -> (ByteStringIO -> IO a) -> IO (a, ByteString)
- withByteStringIO' :: ByteString -> (ByteStringIO -> IO a) -> IO (a, ByteString)
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.