eff WriteLines
An effect used to write lines to a file.
Use the WriteLines.runWithFileWrite handler.
WriteLines.runWithFileWrite
def writeLines(data: { lines = List[String] }, f: String): Result[IoError, Unit] \ WriteLines
Writes lines to the given file f.
lines
f
Creates f if it does not exist. Overwrites it if it exists.
def runWithFileWrite(f: Unit -> a \ ef): a \ (ef - WriteLines) + FileWrite
Handles the WriteLines effect of the given function f using the FileWrite effect.
WriteLines
FileWrite