import { Effect, Option, pipe } from "effect"
declare const foo: Effect.Effect<Option.Option<string>>
declare function bar(s: string): Effect.Effect<number>
const test = pipe(
foo,
Effect.flatten,
Effect.flatMap(bar),
Effect.optionFromOptional
)
import { Effect, Option, pipe } from "effect"
declare const foo: Effect.Effect<Option.Option<string>>
declare function bar(s: string): Effect.Effect<number>
const test = pipe(
foo,
Effect.flatten,
Effect.flatMap(bar),
Effect.optionFromOptional
)