mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
* Compile Effect generators statically * test: declare the dormant array write's expected fence
9 lines
201 B
TypeScript
9 lines
201 B
TypeScript
import { Effect } from "effect";
|
|
|
|
const program = Effect.gen(function* () {
|
|
const name = yield* Effect.succeed("world");
|
|
yield* Effect.log("Hello, " + name + "!");
|
|
});
|
|
|
|
Effect.runPromise(program);
|