import * as tracing_1 from "../Tracing"
import * as tracing_2 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 default function tryCatchOption_(ma, onNone) {
  return fromEither(() => E.fromOption_(ma, onNone))
}
/**
 * Get the A from an option
 *
 * @dataFirst tryCatchOption_
 */

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