I have a value like this:
val ss: Option[Future[List[Either[Error, File]]]]
And what I want to do is to lift this to an EitherT.liftF[Future, Error, List[Either[Error, File]]]
so what I did was this:
ss match {
case Some(value) => EitherT.liftF[Future, Error, List[Either[Error, File]]](value)
case None => EitherT.leftT[Future, List[Either[Error, File]]](Error("failed"))
}
My question is whether it is correct that I can use EitherT.liftF to lift a value which is already a future because I think normally that is used for values which need to be lifted to a future, not one which is a future itself.