[main] Start for comprehension

This commit is contained in:
Paul Campbell 2019-04-29 20:37:36 +01:00
parent 73f4a79254
commit 98c6c6b7df

View file

@ -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 {