What is fp-ts-task-either?
Functional async patterns using TaskEither for type-safe error handling in TypeScript Source: whatiskadudoing/fp-ts-skills.
Functional async patterns using TaskEither for type-safe error handling in TypeScript
Quickly install fp-ts-task-either AI skill to your development environment via command line
Source: whatiskadudoing/fp-ts-skills.
TaskEither combines the laziness of Task with the error handling of Either, providing a powerful abstraction for async operations that can fail.
| Create success | TE.right(value) | Wrap value in Right | | Create failure | TE.left(error) | Wrap error in Left | | From Promise | TE.tryCatch(promise, onError) | Convert Promise to TE | | Transform value | TE.map(f) | Apply f to success value | | Transform error | TE.mapLeft(f) | Apply f to error value |
| Chain operations | TE.chain(f) / TE.flatMap(f) | Sequence dependent operations | | Recover from error | TE.orElse(f) | Try alternative on error | | Handle both cases | TE.fold(onError, onSuccess) | Pattern match result | | Parallel array | TE.traverseArray(f) | Map + sequence in parallel |
Stable fields and commands for AI/search citations.
npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-ts-task-eitherFunctional async patterns using TaskEither for type-safe error handling in TypeScript Source: whatiskadudoing/fp-ts-skills.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-ts-task-either Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/whatiskadudoing/fp-ts-skills