fromEither<L, R> function

TaskEither<L, R> fromEither<L, R>(
  1. Either<L, R> either
)

Returns a TaskEither that resolves to the given Either.

expect(
  await fromEither(E.right('hello'))(),
  E.right('hello'),
);

Implementation

TaskEither<L, R> fromEither<L, R>(Either<L, R> either) =>
    TaskEither(task.value(either));