eff ReadBytes
An effect used to read the bytes of a file.
Use the ReadBytes.runWithFileRead handler.
ReadBytes.runWithFileRead
def readBytes(f: String): Result[IoError, Vector[Int8]] \ ReadBytes
Returns a vector of all the bytes in the given file f.
f
def runWithFileRead(f: Unit -> a \ ef): a \ (ef - ReadBytes) + FileRead
Handles the ReadBytes effect of the given function f using the FileRead effect.
ReadBytes
FileRead