Documentation
Learn how to use corophage to write clean, testable, and composable Rust code with algebraic effect handlers.
Getting Started
Install corophage and run your first effectful program.
Effects
Define effects — the building blocks of your effectful programs.
Programs
Build programs with the Program API for incremental handler attachment.
Handlers
Write sync and async handlers that implement your effects.
Shared State
Bind shared mutable state with with_state before execution.
Advanced Usage
Borrowed data, borrowed resume types, and other advanced patterns.
Performance
Measured execution costs and concrete future storage tradeoffs.
Example: Order Saga
A multi-step workflow with stateful handlers and compensating rollbacks on failure.
Example: Stepwise Debugger
An interactive debugger that can rewind time, built on a single generic Pause effect.