Aller au contenu principal

fromEither()

fromEither<E, A>(fa): TaskEither<E, A>

Creates a TaskEither from an Either.


Type Parameters

E: E

The error type.

A: A

The success type.


Parameters

fa: Either<E, A>

The Either to convert.


Returns: TaskEither<E, A>

A TaskEither containing the Either.


Since

2.0.0