FileWriteWithResult
eff FileWriteWithResultSourceAn effect used to write to the file system.
Operations
def append(data: { str = String }, f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceAppends str to the given file f.
Creates the file f if it does not exist.
def appendBytes(data: Vector[Int8], f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceAppends data to the given file f.
Creates the file f if it does not exist.
def appendLines(data: { lines = List[String] }, f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceAppends lines to the given file f.
Creates the file f if it does not exist.
def mkDir(d: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceCreates the directory d.
def mkDirs(d: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceCreates the directory d and all its parent directories.
def mkTempDir(prefix: String): Result[IoError, String] \ FileWriteWithResult
 SourceCreates a new temporary directory with the given prefix.
Returns the path to the directory.
def truncate(f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceTruncates the given file f.
def write(data: { str = String }, f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceWrites str to the given file f.
Creates file f if it does not exist. Overwrites it if it exists.
def writeBytes(data: Vector[Int8], f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceWrites data to the given file f.
Creates file f if it does not exist. Overwrites it if it exists.
def writeLines(data: { lines = List[String] }, f: String): Result[IoError, Unit] \ FileWriteWithResult
 SourceWrites lines to the given file f.
Creates f if it does not exist. Overwrites it if it exists.
Definitions
def handle(f: a -> b \ ef): a -> b \ (ef - FileWriteWithResult) + IO
 SourceHandles the FileWriteWithResult effect of the given function f.
In other words, re-interprets the FileWriteWithResult effect using the IO effect.
def runWithIO(f: Unit -> a \ ef): a \ (ef - FileWriteWithResult) + IO
 SourceRuns the FileWriteWithResult effect of the given function f.
In other words, re-interprets the FileWriteWithResult effect using the IO effect.