Files
scriptc/tests/fixtures/npm-static/effect-gen-cli.ts
Chris Tate c257368c5e Compile Effect generators statically (#589)
* Compile Effect generators statically

* test: declare the dormant array write's expected fence
2026-09-30 14:25:29 -05:00

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);