pipe can retry, time out, recover from two kinds of error and log along the way. The Effect plugin reads generators as a list of steps and pipes as numbered steps, so the control flow is visible at a glance.
The plugin only narrates Effect APIs in files that import from
effect or belong to a package that depends on it (see Dependency detection), and picks the v3 or v4 reading from that dependency’s version unless version is pinned. That keeps unrelated code that happens to use names like Effect or Layer reading normally.Examples
Generators and pipes
English
Error handling
English
Schema
English
Effect 3 and Effect 4
Some names mean different things in Effect 3 and Effect 4. By default the plugin reads both and uses a phrasing that is true for either. Passversion: 3 or version: 4 for the precise reading. Plugin versioning shows the difference for Schema.Date.
What it covers
Effect.gengenerators,yield*steps,pipeas a method and as a function, andEffect.fn.- Constructors:
succeed,fail,sync,promise,tryPromise,try. - Combinators:
map,flatMap,tap,all,forEach(with concurrency),retry,timeout,catchTag,catchTags,catchAll,tapError,mapError,orElse,either. - Running:
runPromise,runSync,runFork,runMain. - Services and layers:
Context.Tag,Effect.Service, Effect 4’sContext.Service,Layerconstructors andprovideService. - Errors:
Data.TaggedErrorand Schema tagged errors. Option,EitherandResultbasics,Schedule,Streamconstructors and sinks, scopes and finalizers, fibers and refs.Schema: structs, optional fields, checks, literals, unions, classes and decoding.
Translating
The English phrasebook is exported asen and typed as EffectPhrases.