const matchPart1 = Match.type<Type>().pipe(
Match.tag(`Variant1`, () => `Here goes variant 1`)
)
const matchPart2 = Match.type<Type>().pipe(
Match.tag(`Variant2`, () => `Here goes variant 2`)
)
const match = matchPart1.pipe(
Match.orElse(
matchPart2.pipe(
Match.orElse(() => Effect.fail(`Me sad`))
)
)
)
const matchPart1 = Match.type<Type>().pipe(
Match.tag(`Variant1`, () => `Here goes variant 1`)
)
const matchPart2 = Match.type<Type>().pipe(
Match.tag(`Variant2`, () => `Here goes variant 2`)
)
const match = matchPart1.pipe(
Match.orElse(
matchPart2.pipe(
Match.orElse(() => Effect.fail(`Me sad`))
)
)
)