/* * 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 creating a directory, and its functions.///pubmod Fs.MkDir {use Fs.FileWrite////// Effect for creating a directory.////// Use the `MkDir.runWithFileWrite` handler.///pubeffMkDir {////// Creates the directory `d`.///defmkDir(d: String): Result[IoError, Unit] }////// Handles the `MkDir` effect of the given function `f` using the `FileWrite` effect.///pubdefrunWithFileWrite(f: Unit -> a \ ef): a \ (ef - MkDir) + FileWrite =run { f() } withhandlerMkDir {defmkDir(d, k) = k(Fs.FileWrite.mkDir(d)) }}