Filtering with Effectful Refinements in Effect TypeScript
What's the go to combinator for filtering with refinements that are effects? E.g.
// No good as DateTime.isFuture is an effect
getShow.pipe(Effect.filterOrFail(
(show) => DateTime.isFuture(show.value.checkInEndTime),
() => new Show.NotFound(),
))