Skip to content

smithy4s-cats: provide transformers for EitherT #1611

Open
@kubukoz

Description

@kubukoz

Now that we have a Cats module, we should provide a generic (abstracting away IO) version of:

new Transformation.AbsorbError[EitherT[IO, *, *], IO] {
      def apply[E, A](fa: EitherT[IO, E, A], injectError: E => Throwable): IO[A] =
        fa.leftMap(injectError).rethrowT
    }

and the corresponding Transformation.SurfaceError transformation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions