import * as tracing_1 from "../Tracing";
const fileName_1 = "(@effect-ts/system): _src/Sync/tryCatchOption.ts";
import * as E from "../Either";
import { fromEither } from "./fromEither";
/**
 * Get the A from an option
 */

export function tryCatchOption_(ma, onNone) {
  return fromEither(() => E.fromOption_(ma, onNone));
}
/**
 * Get the A from an option
 *
 * @ets_data_first tryCatchOption_
 */

export function tryCatchOption(onNone) {
  return ma => tryCatchOption_(ma, onNone);
}
//# sourceMappingURL=tryCatchOption.js.map