Effect CommunityEC
Effect Community3y ago
14 replies
Champ

Issue with using .pipe method of Context type in "@effect/data" and "@effect/io" versions "^0.13....

Why can't I use .pipe method of a Context type as the docs mentions?

// Effect<Random, never, void>
const program = Random.pipe(
  Effect.flatMap((random) => random.next()),
  Effect.flatMap((randomNumber) => Effect.log(`${randomNumber}`))
)


Random.pipe method does not exist.

Here are the versions:
"@effect/data": "^0.13.5",
"@effect/io": "^0.28.0"

Thank you.
Was this page helpful?