npm.io
0.1.0-alpha.29 • Published 2h ago

@reventlessdev/rescript-effect

Licence
Apache-2.0
Version
0.1.0-alpha.29
Deps
2
Size
135 kB
Vulns
0
Weekly
0
Stars
1

npm License: Apache-2.0 Docs

@reventlessdev/rescript-effect

Alpha. APIs can change without notice between releases. Pin exact versions and expect breaking changes.

ReScript bindings for Effect, used across the Reventless framework. It binds the effect library, pinned to version 3.21.2 (bundled dependency).

Install

pnpm add @reventlessdev/rescript-effect

Then register it as a ReScript dependency in rescript.json:

{
  "dependencies": ["@reventlessdev/rescript-effect"]
}

Requires ReScript ^12.3.0 (peer dependency).

Usage

The bindings are exposed as ReScript modules mirroring the Effect surface, including Effect, Stream, Layer, Context, Fiber, Ref, Queue, PubSub, Schedule, Stm, Duration, Cause, Exit, Deferred, and testing helpers such as TestClock and TestContext.

License

Apache-2.0