0.2.5 #43

Merged
Thilawyn merged 94 commits from next into master 2026-03-31 21:01:13 +02:00
Showing only changes of commit 64d6c20d06 - Show all commits

View File

@@ -41,7 +41,7 @@ export const make = <A, ER, RR, EW, RW>(
? options.modify
: <B, E1 = never, R1 = never>(f: (a: A) => Effect.Effect<readonly [B, A], E1, R1>) =>
Effect.flatMap(options.get, a =>
Effect.flatMap(f(a), ([b, next]) => Effect.map(options.set(next), () => b)
Effect.flatMap(f(a), ([b, next]) => Effect.as(options.set(next), b)
)
),
}, LensPrototype)