/* * Copyright 2026 Flix Authors * * Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE.md file. */////// Effect for deleting a file, and its functions.///pubmod Fs.DeleteFile {use Fs.FileWrite////// Effect for deleting a file.////// Use the `DeleteFile.runWithFileWrite` handler.///pubeffDeleteFile {////// Deletes the given file `f`.////// Fails if the file does not exist.///defdelete(f: String): Result[IoError, Unit] }////// Handles the `DeleteFile` effect of the given function `f` using the `FileWrite` effect.///pubdefrunWithFileWrite(f: Unit -> a \ ef): a \ (ef - DeleteFile) + FileWrite =run { f() } withhandlerDeleteFile {defdelete(file, k) = k(Fs.FileWrite.delete(file)) }}