import * as tsplus_module_1 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_2 from "@effect/core/io/Cause/operations/map";
import * as tsplus_module_3 from "@effect/core/io/Exit/operations/failCause";
import { TakeInternal } from "@effect/core/stream/Take/operations/_internal/TakeInternal";
/**
 * Creates a failing `Take<E, never>` with the specified cause.
 *
 * @tsplus static ets/Take/Ops failCause
 */

export function failCause(cause) {
  return new TakeInternal(tsplus_module_3.failCause(tsplus_module_2.map_(cause, tsplus_module_1.some)));
}
//# sourceMappingURL=failCause.mjs.map