Adding Annotations to Effects in Generator Functions
I was wondering if there was a way to add annotations to the current effect, when inside a generator function. Would be cool to optionally annotate logs based on some if statements and such, in a non "pipe" way.
Example:
const myEffect = Effect.gen(function* (_) { const a = yield* _(a_tag) if (a) { yield* _(Effect.annotateLogs('key', 'value')(_)) }})
const myEffect = Effect.gen(function* (_) { const a = yield* _(a_tag) if (a) { yield* _(Effect.annotateLogs('key', 'value')(_)) }})