fp-taskeither-ref

Community

Fast TaskEither async error handling reference.

Authorwhatiskadudoing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TaskEither lets you model asynchronous operations that can fail with a typed error, and this quick reference provides clear guidance on creating, transforming, and executing TaskEither values in fp-ts.

Core Features & Use Cases

  • Create: TE.left, TE.right, TE.tryCatch, TE.fromEither
  • Transform: TE.map, TE.mapLeft, TE.flatMap
  • Execute: TE.match, running the task with () or by piping through TE.getOrElse
  • Use Case: wrapping API calls, coordinating parallel requests, and building error-aware async workflows in TypeScript apps

Quick Start

Install and import the TaskEither module, then start with TE.right(value) or TE.left(error) to represent outcomes, wrap asynchronous calls with TE.tryCatch for typed errors, and execute by invoking the resulting TaskEither and awaiting its result.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fp-taskeither-ref
Download link: https://github.com/whatiskadudoing/fp-ts-skills/archive/main.zip#fp-taskeither-ref

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.