import { fail } from "./fail";
import { orElse_ } from "./orElse";
/**
 * Fails with given error in case this one fails with a typed error.
 *
 * See also `Stream#catchAll`.
 */

export function orElseFail_(self, e) {
  return orElse_(self, fail(e));
}
/**
 * Fails with given error in case this one fails with a typed error.
 *
 * See also `Stream#catchAll`.
 */

export function orElseFail(e) {
  return self => orElseFail_(self, e);
}
//# sourceMappingURL=orElseFail.js.map