From 98c6c6b7df65b9cbc7442256b01b71a44fca4027 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 Apr 2019 20:37:36 +0100 Subject: [PATCH] [main] Start for comprehension --- src/main/scala/net/kemitix/s3thorp/Main.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/scala/net/kemitix/s3thorp/Main.scala b/src/main/scala/net/kemitix/s3thorp/Main.scala index 9e7896c..cc02929 100644 --- a/src/main/scala/net/kemitix/s3thorp/Main.scala +++ b/src/main/scala/net/kemitix/s3thorp/Main.scala @@ -7,7 +7,9 @@ import cats.syntax.all._ object Main extends IOApp { def exec(args: List[String]): IO[ExitCode] = - IO(println("S3Thorp - hashed sync for s3")).as(ExitCode.Success) + for { + ec <- IO(println("S3Thorp - hashed sync for s3")).as(ExitCode.Success) + } yield ec override def run(args: List[String]): IO[ExitCode] = exec(args).guaranteeCase {