effect
Effect Basics
The Effect Type
Effect<Success, Error, Requirements>
- Lazy: describes a workflow, doesn't execute until run
- Immutable: every operation returns a new Effect
- Aliases:
A(success),E(error),R(requirements)
Creating Effects
| Combinator | Input | Output |
|---|---|---|
succeed |
A |
Effect<A> |
fail |
E |
Effect<never, E> |
sync |
() => A |
Effect<A> |
More from tstelzer/skills
skill-creator
Guide for creating or updating simple, standalone skills with a single SKILL.md file
53discovery
Use for deep design discovery and problem understanding before planning or implementation. Trigger when the user wants to think deeply, build knowledge, surface edge-cases, ask many questions, or explore the problem space without producing plans or code; save a design artifact only when durable context is requested or clearly useful.
44effect-vitest
Testing Effect programs with vitest. Use when writing tests for effect-based code.
32review-plan-implementation
Review code changes against a plan using the plan location and implementing git commit(s).
31effect-http-server
Explains how to define http servers with effect. Use only when a top-level server is, or needs to be written in effect.
30effect-handbook
Canonical handbook for Effect ecosystem usage in TypeScript. Always use when interacting with Effect code.
28