provideEffect<V> method

Effect<V, L, R> provideEffect<V>(
  1. Effect<V, L, E> effect
)

{@category context}

Implementation

Effect<V, L, R> provideEffect<V>(Effect<V, L, E> effect) => Effect.from(
      (context) => effect._unsafeRun(context).then(
            (exit) => switch (exit) {
              Left(value: final cause) => Left(cause),
              Right(value: final value) => _unsafeRun(context.withEnv(value)),
            },
          ),
    );