const result = yield* Effect.either(myEffect);
if (Either.isRight(result)) { return ... }
const error = result.left;
const handledError = Match.value(error).pipe(
Match.tag(.....)
......,
Match.either
)
if (Either.isRight(handledError) { return handledError.right; }
yield* Effect.fail(handledError.left);
const result = yield* Effect.either(myEffect);
if (Either.isRight(result)) { return ... }
const error = result.left;
const handledError = Match.value(error).pipe(
Match.tag(.....)
......,
Match.either
)
if (Either.isRight(handledError) { return handledError.right; }
yield* Effect.fail(handledError.left);