flix

0.69.3

Fs.Truncate

eff TruncateSource

An effect used to truncate a file.

Use the Truncate.runWithFileWrite handler.

Operations

def truncate(f: String): Result[IoError, Unit] \ Truncate Source

Truncates the given file f.

Definitions

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

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