From e87540116061d7aaaf742e6fcf5c0b733d3b57be Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Wed, 29 Nov 2023 09:08:39 +0100 Subject: [PATCH] Make installation `Effectful` --- src/core/installer.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/installer.scala b/src/core/installer.scala index 7a88dea..f758289 100644 --- a/src/core/installer.scala +++ b/src/core/installer.scala @@ -22,6 +22,7 @@ import serpentine.*, hierarchies.unix import rudiments.* import guillotine.* import gossamer.* +import exoskeleton.* import turbulence.* import eucalyptus.* import perforate.* @@ -84,8 +85,8 @@ object Installer: def install (force: Boolean = false, target: Maybe[Path] = Unset) (using service: DaemonService[?], log: Log[Text], environment: Environment, home: HomeDirectory) - (using Raises[InstallError]) - : Result = + (using Effectful) + : Result raises InstallError = mitigate: case PathError(path) => InstallError(InstallError.Reason.Environment) case ExecError(command, _, _) => InstallError(InstallError.Reason.Io)