Tests
All checks were successful
Lint / lint (push) Successful in 14s

This commit is contained in:
Julien Valverdé
2026-03-23 21:23:34 +01:00
parent 8430b4ddf6
commit 99f5e089f5

View File

@@ -1,4 +1,4 @@
import { Chunk, Effect, Pipeable, Predicate, Readable, Stream, Subscribable, SubscriptionRef } from "effect" import { Chunk, Effect, Pipeable, Predicate, Readable, Ref, Stream, Subscribable, SubscriptionRef } from "effect"
export const LensTypeId: unique symbol = Symbol.for("@effect-fc/Lens/Lens") export const LensTypeId: unique symbol = Symbol.for("@effect-fc/Lens/Lens")
@@ -124,6 +124,8 @@ Effect.gen(function*() {
console.log(yield* myChunkRef.get) console.log(yield* myChunkRef.get)
console.log(yield* chunkValueLens.get) console.log(yield* chunkValueLens.get)
yield* Ref.update(myChunkRef, Chunk.replace(1, 22))
console.log(yield* chunkValueLens.get)
}).pipe( }).pipe(
Effect.runSync Effect.runSync
) )