/** * Returns an effect that models failure with the specified error. The moral * equivalent of `throw` for pure code. * * @tsplus static effect/core/io/Effect.Ops fail */ export function fail(error: E): Effect { return Effect.failCause(Cause.fail(error)) }