← Back

Source

bimap

bimap<F>(
  F: Functor<F>
): <L, V, A, B>(fa: HKT<F, Either<L, A>>, f: (l: L) => V, g: (a: A) => B) => HKT<F, Either<V, B>>

Added in v1.2.0 (function)

chain

chain<F>(F: Monad<F>): EitherT<F>['chain']

Added in v1.0.0 (function)

fold

fold<F>(
  F: Functor<F>
): <R, L, A>(left: (l: L) => R, right: (a: A) => R, fa: HKT<F, Either<L, A>>) => HKT<F, R>

Added in v1.0.0 (function)

fromEither

fromEither<F>(F: Applicative<F>): <L, A>(fa: Either<L, A>) => HKT<F, Either<L, A>>

Added in v1.0.0 (function)

getEitherT

getEitherT<M>(M: Monad<M>): EitherT<M>

Added in v1.0.0 (function)

left

left<F>(F: Functor<F>): <L, A>(fl: HKT<F, L>) => HKT<F, Either<L, A>>

Added in v1.0.0 (function)

mapLeft

mapLeft<F>(
  F: Functor<F>
): <N, L>(f: (l: L) => N) => <A>(fa: HKT<F, Either<L, A>>) => HKT<F, Either<N, A>>

Added in v1.0.0 (function)

right<F>(F: Functor<F>): <L, A>(fa: HKT<F, A>) => HKT<F, Either<L, A>>

Added in v1.0.0 (function)