Package-level declarations

Types

Link copied to clipboard
fun interface TribotEitherEffect<E, A> : Effect<Either<E, A>>
Link copied to clipboard
class TribotEitherEffectDefault<E, A>(control: DelimitedScope<Either<E, A>>, defaultBoolBind: E) : TribotEitherEffect<E, A>

Functions

Link copied to clipboard
fun <L, R> tribotEither(func: suspend TribotEitherEffect<L, *>.() -> R): Either<L, R>

Provides a non-suspending monad comprehension for the Either type

fun <L, R> tribotEither(defaultBoolBind: L, func: suspend TribotEitherEffectDefault<L, *>.() -> R): Either<L, R>

Provides a non-suspending monad comprehension for the Either type with a default binding for boolean values