flix

0.69.3

Fs.AppendLines

eff AppendLinesSource

An effect used to append lines to a file.

Use the AppendLines.runWithFileWrite handler.

Operations

def appendLines(data: { lines = List[String] }, f: String): Result[IoError, Unit] \ AppendLines Source

Appends lines to the given file f.

Creates the file f if it does not exist.

Definitions

def runWithFileWrite(f: Unit -> a \ ef): a \ (ef - AppendLines) + FileWrite Source

Handles the AppendLines effect of the given function f using the FileWrite effect.