import type * as P from "@tsplus/stdlib/prelude/AssociativeEither" /** * @tsplus static Maybe.Ops AssociativeEither */ export const AssociativeEither = HKT.instance>({ orElseEither: (fb: LazyArg>) => (fa: Maybe): Maybe> => fa._tag === "Some" ? Maybe.some(Either.left(fa.value)) : fb().map(Either.right) })