eff Truncate
An effect used to truncate a file.
Use the Truncate.runWithFileWrite handler.
Truncate.runWithFileWrite
def truncate(f: String): Result[IoError, Unit] \ Truncate
Truncates the given file f.
f
def runWithFileWrite(f: Unit -> a \ ef): a \ (ef - Truncate) + FileWrite
Handles the Truncate effect of the given function f using the FileWrite effect.
Truncate
FileWrite