left<A, B> function

TaskEither<A, B> left<A, B>(
  1. A value
)

Create a Left value wrapped in a TaskEither.

Example:

final errorTask = left<String, int>("Error");

Implementation

TaskEither<A, B> left<A, B>(A value) {
  return TaskEither(() => Future.value(e.Left<A, B>(value)));
}