typeclass-design

Community

Curried typeclasses with dual APIs.

Authorfront-depiction
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables designing reusable abstractions by enforcing fully curried typeclass functions and dual APIs for both data-first and data-last usage.

Core Features & Use Cases

  • Fully currying typeclass functions to enable partial application and space for extensions.
  • Dual APIs using Function.dual to support both data-first and data-last usage patterns.
  • Examples and patterns for common typeclasses (e.g., Durable) and helpers like isMoreThan and OrderByDuration using a TypeScript/HKT-like approach.
  • Use Case: Build a generic Durable type and derive operations that can be piped or called directly.

Quick Start

Define a Durable interface and implement a curried function using the dual API pattern, then invoke it in both data-first and data-last styles as shown in the examples.

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: typeclass-design
Download link: https://github.com/front-depiction/claude-setup/archive/main.zip#typeclass-design

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.