eff WriteBytes
An effect used to write bytes to a file.
Use the WriteBytes.runWithFileWrite handler.
WriteBytes.runWithFileWrite
def writeBytes(data: Vector[Int8], f: String): Result[IoError, Unit] \ WriteBytes
Writes data to the given file f.
data
f
Creates file f if it does not exist. Overwrites it if it exists.
def runWithFileWrite(f: Unit -> a \ ef): a \ (ef - WriteBytes) + FileWrite
Handles the WriteBytes effect of the given function f using the FileWrite effect.
WriteBytes
FileWrite