Skip to main content

right()

right<E, A>(a): TaskEither<E, A>

Creates a TaskEither that resolves to a Right.


Type Parameters​

E: E = never​

The error type.

A: A = never​

The success type.


Parameters​

a: A​

The success value.


Returns: TaskEither<E, A>​

A TaskEither containing the Right.


Since​

2.0.0