// ets_tracing: off
import { map_ as mapCause } from "../Cause";
import * as O from "../Option";
import { foldCauseM_, halt, succeed } from "./core";
import { fail } from "./fail";
/**
 * Unwraps the optional success of this effect, but can fail with an None value.
 */

export function get(self, __trace) {
  return foldCauseM_(self, x => halt(mapCause(x, O.some)), O.fold(() => fail(O.none), succeed), __trace);
}
//# sourceMappingURL=get.js.map